+ Reply to Thread
Results 1 to 5 of 5

VBA: Create new sheets based on cell value and copy data

  1. #1
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    VBA: Create new sheets based on cell value and copy data

    I need to copy data from one sheet into multiple sheets and name the new sheets using data in column A. In the attached example spreadsheet my final result would have four sheets: A7402, B7402, C7402, and Data. Sheet A7402 would contain 3 rows (including header) and all 9 columns. Sheet B7402 would contain 9 rows (including header) and all 9 columns. Sheet C7402 would contain 5 rows (including header) and all 9 columns. The Sheet Data would remain the same. Any help would be appreciated.


    Thanks,

    Met
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: VBA: Create new sheets based on cell value and copy data

    Try
    Please Login or Register  to view this content.
    Attached Files Attached Files

  3. #3
    Forum Expert
    Join Date
    07-31-2010
    Location
    California
    MS-Off Ver
    Excel 2007
    Posts
    4,070

    Re: VBA: Create new sheets based on cell value and copy data

    Another

    Please Login or Register  to view this content.
    Last edited by stnkynts; 02-18-2015 at 07:15 PM.

  4. #4
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Re: VBA: Create new sheets based on cell value and copy data

    Thanks for the responses. Stnkynts, I have been trying to use your code but I am executing it through Access after exporting an excel file. I am having some issues adapting the script to work through access. Any help would be appreciated.

    Sorry for the delayed responses on my end but I have had issues connecting to the forum due to Websense.

    Thanks again,
    Met

  5. #5
    Forum Contributor
    Join Date
    02-16-2006
    MS-Off Ver
    OFFICE 365
    Posts
    244

    Re: VBA: Create new sheets based on cell value and copy data

    Figured out my problem. It was an issue with one of my variables. Once again thanks for the help guys!


    Met

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Copy Data Create a New Sheet Name Should be Based On Cell D7 value and paste here
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-16-2014, 01:11 AM
  2. Replies: 0
    Last Post: 11-04-2013, 01:48 PM
  3. [SOLVED] Filter data on sheet1, create, and paste into new sheets based on cell value
    By minister in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-20-2013, 09:16 PM
  4. Copy data from multiple sheets to one main based on cell value
    By jdjenterprises in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-28-2013, 10:13 PM
  5. Replies: 2
    Last Post: 11-05-2012, 09:28 AM

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