Custom Format Add Ins or VBA Codes

Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Custom Format Add Ins or VBA Codes

  1. #1
    New Member
    Join Date
    Jun 2011
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Custom Format Add Ins or VBA Codes

     
    Hi Excellers!

    Could anyone please tell me the VBA codes for the following Custom Formats in Excel 2010:
    (1) ##\,##\,##\,##0.00;[<-999999](##\,##\,##0.00);##,##0.00

    (2) #,##0.00,,

    (3) #,##0.00,,,

    Thanks in advance

  2. #2
    Board Regular
    Join Date
    Aug 2009
    Posts
    72
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Custom Format Add Ins or VBA Codes

    what are you trying to achieve?

    Code:
    Sub numFormat()
    
    Range("A1").NumberFormat = "##\,##\,##\,##0.00;[<-999999](##\,##\,##0.00);##,##0.00"
    Range("A2").NumberFormat = "#,##0.00"
    Range("A3").NumberFormat = "#,##0.00"
    End Sub

  3. #3
    New Member
    Join Date
    Jun 2011
    Posts
    23
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Custom Format Add Ins or VBA Codes

      
    Dear Shahzadt,

    Thanks.

    I frequently need to summarize financial data as per clients' requirements hence my questions.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com