+ Reply to Thread
Results 1 to 4 of 4

Help for convertion of text to general / number format

  1. #1
    Registered User
    Join Date
    12-21-2011
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    2

    Help for convertion of text to general / number format

    Dear All

    I am trying to create Macro for convertion of number stored as text to general / number format but unable to convert data of Cell # A1, A2 with following VBA code. However, Value in A3 is prefectly converting to general.

    Sub Test()
    With Columns("A")
    .NumberFormat = "General"
    End With
    End Sub

    File is also attached in email for your reference.

    Need your help to resolve this issue
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    09-01-2012
    Location
    India
    MS-Off Ver
    Excel 2007/10
    Posts
    45

    Re: Help for convertion of text to general / number format

    Please Login or Register  to view this content.

  3. #3
    Forum Expert macropod's Avatar
    Join Date
    12-22-2011
    Location
    Canberra, Australia
    MS-Off Ver
    Word, Excel & Powerpoint 2003 & 2010
    Posts
    3,726

    Re: Help for convertion of text to general / number format

    The problem appears to be that your data have been stored as text. Try:
    Please Login or Register  to view this content.
    Cheers,
    Paul Edstein
    [Fmr MS MVP - Word]

  4. #4
    Registered User
    Join Date
    12-21-2011
    Location
    Lahore, Pakistan
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: Help for convertion of text to general / number format

    Thanks, Macropod and Pooja.

+ 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