Closed Thread
Results 1 to 3 of 3

Loop code for selected worksheets

  1. #1
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Smile Loop code for selected worksheets

    Hello, could some one please help modify my code to do the following:

    I am trying to create a loop that will only loop through worksheets named: E-1, E-2 and E-7 only in my Excel 2003 workbook (attached with dummy data).

    The AutoFilters for each of these worksheets: E-1, E-2, E-3, E-7, E-9, E-11 are switch on and have filters applied.

    Upon each iteration of looping through the macro, the following line of code is executed. This code works fine for the first iteration loop, however I the following iterations to paste the filtered data to worksheet named: 1 Mth in the last cell (so that the data is appended).

    I do not know how to make this happen

    So if some one could please help me modify my macro and make it so that the data is appended in worksheet named 1 Mth, then it would be greatly appreciated.

    Kind regards,

    Chris

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by longbow007; 06-16-2010 at 11:57 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Loop code for selected worksheets

    is this different from the prior thread on the same topic?

    If not, please resume in the prior thread.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Contributor
    Join Date
    06-13-2009
    Location
    Australia
    MS-Off Ver
    Excel 2016
    Posts
    245

    Re: Loop code for selected worksheets

    Hi shg, I was trying to make it a different thread, as I believed at the time that my original thread was a bit too complex.

    I was trying another hopefully simpler approach of dividing my problem into smaller "chunks" size bits.

    I have resumed the old thread

    Sorry about the confusion

Closed 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