• Format as text (Excel 2002 sp3)

    Author
    Topic
    #427154

    I need to format cells as text so that number retain their leading zeros. If I do so from the menu, I get the results I want. However, I cannot see how to do this via code.

    Viewing 0 reply threads
    Author
    Replies
    • #989072

      The following will format column A to Text:


      Range("A:A").NumberFormat = "@"

      • #989074

        Thanks. I tried that, it did not work. I read your post so I tried it again. It helps if I type in the correct column number! Now I feel silly.

        Thanks again.

    Viewing 0 reply threads
    Reply To: Format as text (Excel 2002 sp3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: