+ Reply to Thread
Results 1 to 5 of 5

Text to Columns, but macro

  1. #1
    Registered User
    Join Date
    11-05-2012
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    48

    Text to Columns, but macro

    Hello again
    I have a problem with a macro
    I have a text in column A, something like
    " X = 3439.3046 Y = -328.9816 Z = 0.0000" but in many rows in column A
    I want to split in columns. It's easy in excel with "text to columns" with options Delimited/next/selecting: tab, semicolon, comma, space, other, "="/next/general/finish.
    I tried with macro record, but when I activate the macro with a button, it appears some kind of errors.
    I need a macro to do this operation and when i activate this process with a button, I want to work exactly like in excel.

  2. #2
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Re: Text to Columns, but macro

    try this one

    Please Login or Register  to view this content.
    Last edited by thisisgerald; 11-21-2012 at 09:41 AM. Reason: additional code
    Don't forget to mark your thread as [SOLVED].

  3. #3
    Registered User
    Join Date
    11-05-2012
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Text to Columns, but macro

    Still doesn't work
    The text is in Sheet 1 and the button is in Sheet "Butoane"/"Toshiba 1"
    Lokk what is happening when i push the button
    Appears an error at texttocolumns macro.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    It's more fun in the Philippines :D
    MS-Off Ver
    Excel 2007
    Posts
    209

    Re: Text to Columns, but macro

    replace with this.
    I think on text_to_columns3 ranges doesn't have values.

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    11-05-2012
    Location
    Bucharest
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: Text to Columns, but macro

    It works now.
    I put "Sheets("Main").Select" under Sub...
    So it's solved

    [SOLVED]

+ 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