+ Reply to Thread
Results 1 to 4 of 4

Create new worksheets from a list and then copy info into these from another worksheet

  1. #1
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    107

    Create new worksheets from a list and then copy info into these from another worksheet

    Hi there - I am a newbie to VBA but I have tried adapting code and have made some progress.

    My main challenge is combining all the separate code snippets together.

    Objective of code:

    1. Create a unique list of values from a column in a particular sheet and paste this list in a new worksheet - I have the code for this

    2. Reference this list and create new worksheets / Tabs based on this list i.e. if there are 3 elements in the list then 3 tabs are created with the corresponding name - I have the code for this

    3. In these newly created tabs I need to paste a generic template with formulas from an existing worksheet in the same workbook i.e. all 3 of the newly created tables will have the identical template including the "Set print area" settings associated with the template sheet- I have this code to copy the contents but I'm struggling also copy the "Set print area settings and convert the landscape for printing"

    4. In these newly created tabs, in Cell A1 I need to paste the name derived from the list which is also the name of the specific tab - I DON'T have this code.

    My challenge is that I'm struggling to string these all together and execute parts 1, 3 & 4 in the same macro as part 2 i.e. as I loop through the list I want to paste the template (part 3) and then paste the template name in Cell A (part 4)

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Would really appreciate any guidance.

    Thank-you.

    Concatch
    Attached Files Attached Files
    Last edited by concatch; 07-15-2020 at 03:54 PM.

  2. #2
    Forum Expert nankw83's Avatar
    Join Date
    08-31-2015
    Location
    Kuwait
    MS-Off Ver
    365
    Posts
    1,712

    Re: Create new worksheets from a list and then copy info into these from another worksheet

    Hi Concatch,

    Try the below code ...

    Please Login or Register  to view this content.
    If I was able to help, you can thank me by clicking the * Add Reputation under my user name

  3. #3
    Valued Forum Contributor
    Join Date
    04-01-2015
    Location
    The Netherlands
    MS-Off Ver
    2003/2007/2010/2016/office 365
    Posts
    880

    Re: Create new worksheets from a list and then copy info into these from another worksheet

    Just a little bit different

    Please Login or Register  to view this content.

  4. #4
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,208

    Re: Create new worksheets from a list and then copy info into these from another worksheet

    No need for two loops...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

+ 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. Add colums with same title and have info copy to new worksheet as a list
    By HelenClark in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2014, 09:02 AM
  2. Create list in new worksheet with current info after multiple filtering
    By HERJARI in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-18-2013, 10:21 PM
  3. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 PM
  4. [SOLVED] Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  5. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  6. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 AM
  7. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  8. Create a list in one worksheet of the other worksheets' names
    By Kelli in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM

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