+ Reply to Thread
Results 1 to 7 of 7

Macro to copy row data into new worksheets and separate delimited data

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    5

    Macro to copy row data into new worksheets and separate delimited data

    Let me start by saying i'm a novice when it comes to excel and I have spent alot of time searching for a solution to my problem, and I've found some great macro examples that do part of what I need, but not all.

    I have attached a spreadsheet that shows what i'm trying to do.

    On the first sheet (Sheet1) I have a few rows of data. I want to run a macro that will take each row and create a new worksheet (with the column A data as the name of the worksheet) for it following the template I have included. That much I was able to do with a macro I found and adapted. However, the second part is working with the street column that includes multiple data values seperated by ";#". What I want to do, after i've created each worksheet is go through that column and separate out each value delimited by ;# into a new column, as i've shown in the template example.

    I couldn't find a way to do the seperation of data values after separating out each row into a new worksheet. If anyone could provide a macro that would meet both of these needs I would greatly appreciate.

    Thanks in advance for your help!
    Attached Files Attached Files

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to copy row data into new worksheets and separate delimited data

    Hello asuguy83,

    Welcome to the Forum!

    I don't see any values on "Sheet1" that are separated by ";#". Can you provide a sample of data that does? You can include in your reply. You don't need to post the workbook again.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Registered User
    Join Date
    12-21-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Macro to copy row data into new worksheets and separate delimited data

    Hey Leith -

    Thanks for the warm welcome .

    Here is an example of the delimited data:

    Column A

    data1;#data2;#data3;#data4

    I wanted to break each value onto a separate row, and delete the ";#" symbols if possible.

    Sorry for not including that in the sample, and thanks for your help!

  4. #4
    Registered User
    Join Date
    12-21-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Macro to copy row data into new worksheets and separate delimited data

    I just realized looking at the sample I provided, that is didn't save the latest changes I made. The template is wrong as well. Here is the correct sample data file. Sorry about the confusion.
    Attached Files Attached Files

  5. #5
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Macro to copy row data into new worksheets and separate delimited data

    Hello asuguy83,

    It would help to see the macro code you are using to create the new sheets. It can probably be updated to add the new rows when needed.

  6. #6
    Registered User
    Join Date
    12-21-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Macro to copy row data into new worksheets and separate delimited data

    Here is the macro I found for replicating each row of data into a new worksheet. I was using this for a spreadsheet with more columns, but the principles should be the same:

    Please Login or Register  to view this content.
    Thanks so much for your help with this.

  7. #7
    Registered User
    Join Date
    12-21-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Macro to copy row data into new worksheets and separate delimited data

    Refreshing this request in the hopes someone will have a way to update my existing macro. Hope everyone is having a great Christmas!

+ 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