+ Reply to Thread
Results 1 to 3 of 3

text to columns as text rather than date

  1. #1
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    text to columns as text rather than date

    Hi there, I am using text to column function via VBA - when record the macro i select "text" rather than "general" which works just fine. However when i run the macro from vba - it presets to general and therefore displays my split data as a time rather than as text

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: text to columns as text rather than date

    Suggest that you check the value of the FieldInfo array in the code.

    Please Login or Register  to view this content.
    The number 2 should be the second element of the array for which the first element is theindex of the column in you parsed data set (2 in this case).
    Martin

  3. #3
    Forum Contributor
    Join Date
    04-21-2009
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    710

    Re: text to columns as text rather than date

    Hi there, the problem i have is that for some reason it converts 00:01 to 12:01.

    So when i split the columns I get 12 (in column B) and 1 (in column C) - where this should be 0 and 1 respectively

+ 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