+ Reply to Thread
Results 1 to 3 of 3

VBA to create many worksheets from one master sheet based on column value

  1. #1
    Forum Contributor
    Join Date
    01-16-2009
    Location
    Ill.
    MS-Off Ver
    Excel 2010
    Posts
    190

    VBA to create many worksheets from one master sheet based on column value

    Hello - I need some assistance with the code below. I've used this many times sucessfully (found this code I think from a poster by the name of Ron B., I forget the last name...). The excel files I've used it on in the past were basic excel files, meaning columns and rows of data with the columns headers in row 1, then all data in rows below. I'm working now with an Excel file that has some static values and simple sum calcs, etc in various cells in rows A1 to S9 (or so). The columns headers start in row 10. My task now is to split the one worksheet into multiple worksheets based on the values found in AT10 on down. Each new spreadsheet should keep the values in Rows 1 to 9, followed by the specific headers/rows starting in row10. I've attached a sample file with dummy data. Can someone take a look at the code below and suggest what tweaks I can make?

    Many thanks...!

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by Ironman; 09-11-2012 at 02:47 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA to create many worksheets from one master sheet based on column value

    Try this code
    Please Login or Register  to view this content.
    Copy the Excel VBA code
    Select the workbook in which you want to store the Excel VBA code
    Hold the Alt key, and press the F11 key, to open the Visual Basic Editor
    Choose Insert | Module
    Where the cursor is flashing, choose Edit | Paste

    To run the Excel VBA code:
    Choose Tools | Macro | Macros
    Select a macro in the list, and click the Run button
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    01-16-2009
    Location
    Ill.
    MS-Off Ver
    Excel 2010
    Posts
    190

    Re: VBA to create many worksheets from one master sheet based on column value

    Great! Worked the first time without tweaking it...thank you very much. Enjoy your day!

+ 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