+ Reply to Thread
Results 1 to 5 of 5

create worksheets depending on cell values.

  1. #1
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    create worksheets depending on cell values.

    Hi experts,
    I am working on an excel spreadsheet and I need a macro that can create worksheets depending on cell values.

    i.e. In the attached workbook, I want to create sheets based on the type. Type 1 and 2 will be on different sheets and type 0 and 3 will be on the same sheet. The sheet name doesn't matter, I only need the macro to find out what type the article is and then paste the rows in a different sheet.
    Fyi, I've created the sheets manually so that you have an idea of what the end result should look like.

    Is such a thing possible to achieve?

    Thanks,
    Amar.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: create worksheets depending on cell values.

    hi amar05, option, please check attachment, press "Run" button or run code "test"
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: create worksheets depending on cell values.

    Amazing! Exactly what I needed.

    Can you possibly explain what this part of the code means?
    Please Login or Register  to view this content.
    Thanks.

  4. #4
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: create worksheets depending on cell values.

    it uses loop to get each array value that is used to autofilter data

  5. #5
    Registered User
    Join Date
    08-30-2012
    Location
    Ottawa
    MS-Off Ver
    Excel 2007
    Posts
    59

    Re: create worksheets depending on cell values.

    Appreciate your help, watersev. Thanks a lot.

+ 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. Replies: 2
    Last Post: 05-06-2013, 08:53 AM
  2. [SOLVED] Create code for a new field to return different values depending on existing data.
    By DrNerj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-31-2012, 11:04 AM
  3. Copying Data between Worksheets depending on Same Column Values
    By jimmy_nora in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-28-2010, 03:24 AM
  4. Create Worksheets Based on Cell Values
    By modytrane in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2008, 04:55 PM
  5. Replies: 1
    Last Post: 02-04-2005, 08:06 PM

Tags for this Thread

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