+ Reply to Thread
Results 1 to 3 of 3

setting format cell accounting using vba

Hybrid View

spexcel setting format cell... 03-26-2009, 12:18 AM
royUK Re: setting format cell... 03-26-2009, 03:01 AM
spexcel Re: setting format cell... 03-26-2009, 02:25 PM
  1. #1
    Registered User
    Join Date
    03-26-2009
    Location
    mn,usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    setting format cell accounting using vba

    Hi,
    i am doing some calculations using vba in excel, i need to know how to set the cell format to 'accounting' in vba ?

    thanks for the help
    sam

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: setting format cell accounting using vba

    The easiest way to check for code like this is to use the macro recorder

    ActiveCell.NumberFormat = "_($* #,##0.00_);_($* (#,##0.00);_($* ""-""??_);_(@_)"
    End Sub
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    03-26-2009
    Location
    mn,usa
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: setting format cell accounting using vba

    Perfect !!, works like a charm, thanks Roy for your help !

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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