Consulting

Results 1 to 2 of 2

Thread: Solved: Format Cell Question

  1. #1
    VBAX Master CreganTur's Avatar
    Joined
    Jan 2008
    Location
    Greensboro, NC
    Posts
    1,676
    Location

    Solved: Format Cell Question

    Search isn't working here... google has failed me... so I'll go ahead and post this, even though I know this has already been answered somewhere else. I just wish I could find it!

    I'm using "ActiveWorkbook.Worksheets.Add , ActiveSheet" to create a new worksheet(Sheet2), and then I'm moving some data from Sheet1 to the newly created Sheet2. I just need to know how to set the cell formatting to Text on Sheet2- I've got some numbers that have to have text formatting because this process prepares an Excel report's data so it can be Mail Merged into a form letter.

    Thanks
    -Randy Shea
    I'm a programmer, but I'm also pro-grammar!
    If your issue is resolved, please use Thread Tools to mark your thread as Solved!

    PODA (Professional Office Developers Association) | Certifiable | MOS: Access 2003


  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    [vba]

    myrange.NumberFormat = "@"
    [/vba]
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

Posting Permissions

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