+ Reply to Thread
Results 1 to 3 of 3

Macro Auto Reformats Column to Text

Hybrid View

swaink Macro Auto Reformats Column... 05-06-2010, 03:33 PM
Palmetto Re: Macro Auto Reformats... 05-06-2010, 03:40 PM
swaink Re: Macro Auto Reformats... 05-07-2010, 10:01 AM
  1. #1
    Registered User
    Join Date
    05-06-2010
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    2

    Macro Auto Reformats Column to Text

    I am using a Vlookup macro to compare over 4000 cells and when it runs it reformats the entire column from numbers to text.

    Is there a way to make excel not do this? My code never references the numbers as text so I can't figure out why it's getting reformatted.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Macro Auto Reformats Column to Text

    Post the workbook / code so someone can take a look. Using the VLOOKUP function inside VBA will, itself, not cause formatting issues. Seems, either the cells in the column are formatted as text or there is other code formatting them as such.
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    05-06-2010
    Location
    Boston
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Macro Auto Reformats Column to Text

    Fixed the issue. What happened was Vlookup was referencing the numbers as text while the other excel sheet I was using referenced it as integers. I added INT(cell) function and everything fell into place.

    Thanks for your help though Palmetto!

+ 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.6.0 RC 1