+ Reply to Thread
Results 1 to 4 of 4

delimited text to column in a loop

  1. #1
    Registered User
    Join Date
    11-17-2011
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    43

    delimited text to column in a loop

    for this code, i am trying to insert three rows between columns D and E, and then filling those columns with delimited data in column D. here is what my data looks like before running this macro (http://i.imgur.com/kpIo7.gif), and here is what i want it to look like after: (http://i.imgur.com/X6JZM.gif). My code is below, i seem to be having a problem getting the range being used for the Text-to-columns delimitation to change. Any ideas?


    Please Login or Register  to view this content.
    Last edited by DFrank231; 12-19-2011 at 12:25 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: delimited text to column in a loop

    You don't need to loop, just apply texttocolumns to the whole column D or the used bit of it.

  3. #3
    Registered User
    Join Date
    11-17-2011
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: delimited text to column in a loop

    Quote Originally Posted by StephenR View Post
    You don't need to loop, just apply texttocolumns to the whole column D or the used bit of it.
    thanks for the response. the reason i am looping is because the data will not always be that long, so i want the code to be able to reflect the number of line items involved.

    i can try modifying it to pasting the TTC all the way down and see if it works out...

  4. #4
    Registered User
    Join Date
    11-17-2011
    Location
    Columbus, OH
    MS-Off Ver
    Excel 2007
    Posts
    43

    Re: delimited text to column in a loop

    nevermind! turns out your method works just fine.

    thanks, Stephen.

+ 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