+ Reply to Thread
Results 1 to 6 of 6

Copy and Paste sheet into a range of sheets from list

  1. #1
    Registered User
    Join Date
    06-29-2005
    Posts
    12

    Copy and Paste sheet into a range of sheets from list

    I have 3 macros where one macro calls two others.
    I have pasted the code below but i am struggling with the CopyAndPasteSheet macro.

    I have a button which runs the macro CreateDevicelList.
    CreateDeviceList in turn calls CreateSheetsFomList.
    CreateSheetsFromList creates new worksheets and names the new sheets based on the list on the List Sheet starting at C1.
    Finally the data on the sheet Master is to be copied and pasted into each of the new sheets created in CreateSheetsFromList. Then delete rows 1 to 5.

    Please Login or Register  to view this content.
    Last edited by JBeaucaire; 07-19-2013 at 10:59 AM. Reason: Added CODE tags, as per Forum Rules. Take a moment to read the Forum Rules in the menu bar above. Thanks.

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy and Paste sheet into a range of sheets from list

    So, wouldn't it be better to simply create copies of the MasterSheet as a template and rename each of these new sheets to your List names, then delete rows1:5?
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    06-29-2005
    Posts
    12

    Re: Copy and Paste sheet into a range of sheets from list

    I am using the macros in numerous different buttons to do different things so rather than writing complete indivual solutions each time I broke it down into smaller macros. If i can find the solution to what I have outlined it will actually help in several places. Probably a bit long winded to exp[lain all the details so i shortened it to what I posted.

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy and Paste sheet into a range of sheets from list

    I understand, but that doesn't answer the question. Sometimes breaking out short routines into even shorter ones is the wrong thing to do.

    Right now you have 3 macro to do one thing... create copies of the Master with new names without rows1:5. That really is a simple one-macro thing.


    Please Login or Register  to view this content.

    Can you adapt this type of approach into your need to use it on multiple buttons for various things?

  5. #5
    Registered User
    Join Date
    06-29-2005
    Posts
    12

    Re: Copy and Paste sheet into a range of sheets from list

    Thank You. I can alter the approach I was taking and adapt this to do exactly what I need.

  6. #6
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Copy and Paste sheet into a range of sheets from list

    I've marked this thread as SOLVED for you.
    Next time, select Thread Tools from the links above and mark this thread as SOLVED. Thanks.
    Last edited by JBeaucaire; 07-20-2013 at 05:28 PM.

+ 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 range from multiple sheets and paste to one sheet
    By David_Hiss in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 04-05-2013, 09:48 PM
  2. Copy range A:7 - Z200 from all sheets and paste into summary sheet
    By cheesiepoof05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-06-2011, 05:45 PM
  3. Copy and paste range w/o selecting sheets
    By bg18461 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-05-2006, 09:01 PM
  4. Copy Range and Paste to Array of Sheets
    By bobwilson in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-06-2006, 08:23 AM
  5. copy from one sheet and paste into other sheets
    By TUNGANA KURMA RAJU in forum Excel General
    Replies: 3
    Last Post: 12-08-2005, 11:10 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