+ Reply to Thread
Results 1 to 3 of 3

Thread: VBA Code Help - Convert to Number

  1. #1
    Registered User
    Join Date
    05-12-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2003
    Posts
    2

    VBA Code Help - Convert to Number

    After importing my report to Excel my numbers are listed in text format with the green arrow in the upper corner (see attached worksheet). For my situation, the problem can easily be fixed by highlighting all of the fields and selecting "Convert to Number" from the exclamation point drop down.

    Is there a way using VBA Code to replicate this process? I would like all of my values to retain their format (percentage, dollar, etc). but no longer have the green notices in the upper corner.

    Any help would be greatly appreciated. Thanks!
    Attached Files Attached Files
    Last edited by jeff01010; 05-12-2011 at 11:40 AM.

  2. #2
    Forum Guru TMShucks's Avatar
    Join Date
    07-15-2010
    Location
    Manchester, England
    MS-Off Ver
    MSO 2003 & 2007
    Posts
    6,228

    Re: VBA Code Help - Convert to Number

    Try:

    Range("B3:I6").Value = Range("B3:I6").Value

    Regards

  3. #3
    Registered User
    Join Date
    05-12-2011
    Location
    Boston, MA
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA Code Help - Convert to Number

    I can not believe I missed a function as simple as that. Thank you for your help this worked perfectly.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0