+ Reply to Thread
Results 1 to 5 of 5

Increasing efficiency of my macro to copy sheets based on cell range

  1. #1
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Increasing efficiency of my macro to copy sheets based on cell range

    Can this macro be improved in two ways? Copying Sheets VBA.xlsm

    1) So that if the cell in range A2:A11 is empty, do not create a sheet for that cell.
    2) Some way of writing the code once and looping it so that I do not need to add in the same code 10 times for all cells in A2:A11 (Note i've only written it twice for this example).

    Cheers guys

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Increasing efficiency of my macro to copy sheets based on cell range

    Something like this?

    Please Login or Register  to view this content.
    If you are pleased with a member's answer then use the Star icon to rate it.

  3. #3
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Re: Increasing efficiency of my macro to copy sheets based on cell range

    Top man, thankyou.

    One thing that would be even more helpful would be if you or anyone fancies adding in some 'annotations as to what each bit does

  4. #4
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: Increasing efficiency of my macro to copy sheets based on cell range

    It's really simple and self-explanatory macro and as you did some of it yourself I decided you don't need comments. here they are:

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    02-14-2012
    Location
    Warrington
    MS-Off Ver
    Excel 365
    Posts
    376

    Re: Increasing efficiency of my macro to copy sheets based on cell range

    Very much appreciated

+ 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: 1
    Last Post: 08-18-2013, 05:00 PM
  2. Macro to copy and paste range based on cell value
    By msls09 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-05-2013, 12:57 AM
  3. [SOLVED] Macro to copy rows (in a range) based on a cell criteria
    By Taislin in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 03-23-2013, 07:54 PM
  4. macro to copy a range of worksheets based on cell entry and rename specific sheets
    By Lbischoff in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-14-2012, 12:13 PM
  5. Increasing Efficiency of Macro By Eliminating For Loops
    By LPGDEV in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-27-2010, 07:57 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