Results 1 to 3 of 3

Thread: VBA Code for Custom No. Formatting

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Rep Power
    0

    VBA Code for Custom No. Formatting

    Hi Excellers!

    Could you please help me by providing the VBA Codes for the following Custom No. Formats?

    (1) ##\,##\,##\,##0.00;[<-999999](##\,##\,##0.00);##,##0.00

    (2) #,##0.00,

    (3) #,##0.00,,

    (4) #,##0.00,,,


    Thanks & Regards.

  2. #2
    Administrator Excel Fox's Avatar
    Join Date
    Mar 2011
    Posts
    1,402
    Rep Power
    10
    Is this what you are looking for?
    Code:
    Range("A1").NumberFormat = "##\,##\,##\,##0.00;[<-999999](##\,##\,##0.00);##,##0.00"
    A dream is not something you see when you are asleep, but something you strive for when you are awake.

    It's usually a bad idea to say that something can't be done.

    The difference between dream and aim, is that one requires soundless sleep to see and the other requires sleepless efforts to achieve

    Join us at Facebook

  3. #3
    Junior Member
    Join Date
    Jul 2012
    Posts
    6
    Rep Power
    0

    Custom No. Formatting

    Quote Originally Posted by Excel Fox View Post
    Is this what you are looking for?
    Code:
    Range("A1").NumberFormat = "##\,##\,##\,##0.00;[<-999999](##\,##\,##0.00);##,##0.00"
    Thank you very much.

    As for my query, this format specifies Col A. but I want any col. as per my requirements to be formatted as above. Similarly, formats for other 3 may please be given likewise (in hundred thousand my sl. no.2; in Millions my sl. no.3 and in Billions my sl. no.4) in Excel 2010.

    Regards.

Similar Threads

  1. Replies: 1
    Last Post: 10-16-2013, 05:06 PM
  2. Replies: 1
    Last Post: 08-23-2013, 06:33 PM
  3. Shorten VBA Code By Removing Redundant Superfluous Code
    By paul_pearson in forum Excel Help
    Replies: 2
    Last Post: 08-15-2013, 09:09 PM
  4. How to Add Custom List And Use in Custom Sorting
    By Transformer in forum Tips, Tricks & Downloads (No Questions)
    Replies: 0
    Last Post: 06-07-2013, 10:41 PM
  5. Remove Unused Custom Styles VBA
    By Admin in forum Excel and VBA Tips and Tricks
    Replies: 0
    Last Post: 08-23-2012, 02:32 PM

Posting Permissions

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