+ Reply to Thread
Results 1 to 7 of 7

Simple add Format Numeric value in Function

  1. #1
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Simple add Format Numeric value in Function

    Hi guys,

    I need some help adding a line to my Function that will Format the numeric field as follows: "#,##0.00"

    My function code:

    Please Login or Register  to view this content.
    Thank you!
    Last edited by onmyway; 01-30-2015 at 11:53 AM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Simple add Format Numeric value in Function

    A function cannot affect the formatting of cells.

  3. #3
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Re: Simple add Format Numeric value in Function

    oh

    I have about ten fields i would like to format in that way, any idea as to what I can use?

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Simple add Format Numeric value in Function

    I don't get this anyway because your formula returns a boolean, not a number?

    To clarify, you can format the number returned by a function. I just tried that. But why not just format the cells separately?
    Last edited by StephenR; 01-30-2015 at 11:39 AM.

  5. #5
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Re: Simple add Format Numeric value in Function

    Hi Stephen,

    Something like this, but for each TextBox?:

    Please Login or Register  to view this content.

  6. #6
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Simple add Format Numeric value in Function

    Have you tried that? I don't see why that wouldn't work. To do for lots of textboxes you would need a class module, but unfortunately I don't think that's possible for the Exit event.
    Last edited by StephenR; 01-30-2015 at 11:54 AM.

  7. #7
    Forum Contributor onmyway's Avatar
    Join Date
    09-03-2012
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2013
    Posts
    386

    Re: Simple add Format Numeric value in Function

    It does work. Was hoping i could have something more elegant. like a function.

    Thanks for the help!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Simple alpha/numeric find feature similar to CTRL F
    By motecben in forum Excel General
    Replies: 2
    Last Post: 05-22-2013, 03:22 AM
  2. [SOLVED] How do I display numbers as simple (non-numeric) text?
    By Bastette in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 10-16-2012, 09:05 PM
  3. Using the IF function with non-numeric digits & with numeric consequences
    By oldmillbill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-08-2012, 02:39 PM
  4. [SOLVED] Change number (in text format) to numeric format
    By Pam in forum Excel General
    Replies: 5
    Last Post: 10-24-2005, 03:05 PM
  5. [SOLVED] numeric format
    By Rocket J Squirrel in forum Excel General
    Replies: 2
    Last Post: 05-26-2005, 05:15 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1