+ Reply to Thread
Results 1 to 8 of 8

Creating multiple sheets depending a cell count

  1. #1
    Registered User
    Join Date
    01-28-2010
    Location
    earth, milky way
    MS-Off Ver
    Excel 2010
    Posts
    47

    Creating multiple sheets depending a cell count

    I would like to be able to create multiple sheets based on the number of cell entries, and have those cells shows individually on those sheets.

    For example:

    Sheet 1
    A1: New York
    A2: Philadelphia
    A3: Chicago
    A4: Los Angeles

    Run Macro

    Sheet 2
    A1: New York

    Sheet 3
    A1: Philadelphia

    etc.

    Thank you in advance.
    Last edited by burlywood66; 08-02-2010 at 05:25 PM.

  2. #2
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Creating multiple sheets depending a cell count

    A bit rough and ready, but try this ...

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-28-2010
    Location
    earth, milky way
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Creating multiple sheets depending a cell count

    Brilliant! Thanks for the quick response and the great code. Keep up the great work and have a marvelous day.

  4. #4
    Registered User
    Join Date
    01-28-2010
    Location
    earth, milky way
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Creating multiple sheets depending a cell count

    Can I ask you to make one tweak to the code? Can you instead copy all information on that first tab and have it pasted on each subsequent tab?

    So instead of add sheets, do a copy sheet, and have that A1 cell replaced based on sheet.1 column.a data.

    I can clarify if you need a better understanding

  5. #5
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Creating multiple sheets depending a cell count

    Yup, this isn't quite as neat as it will start inserting after any additional sheets that exist in the workbook, but other than having to delete 1 or 2 surplus sheets it should be fine...

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-28-2010
    Location
    earth, milky way
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Creating multiple sheets depending a cell count

    Couldn't you build the code such that:

    If number of entries in column A = 5, copy/paste all information onto 5 sheets
    then
    copy A1 to sheet.2 A1
    copy A2 to sheet.3 A1
    copy A3 to sheet.4 A1

    Thank you - I really appreciate your help.

  7. #7
    Forum Expert
    Join Date
    07-16-2010
    Location
    Northumberland, UK
    MS-Off Ver
    Excel 2007 (home), Excel 2010 (work)
    Posts
    3,054

    Re: Creating multiple sheets depending a cell count

    It's a pain cutting and pasting data, rather than whole sheets, but this should produce the same results:


    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    01-28-2010
    Location
    earth, milky way
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Creating multiple sheets depending a cell count

    There we go!

    Thanks so much again. I really appreciate the time you take out of your day to do this. Have a wonderful day/week/month/year/life

+ 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