+ Reply to Thread
Results 1 to 2 of 2

Macro skipping over tabs...Can't figure out why

  1. #1
    Registered User
    Join Date
    09-26-2008
    Location
    North Myrtle Beach
    MS-Off Ver
    365 Business
    Posts
    82

    Macro skipping over tabs...Can't figure out why

    This workbook contains multiple tabs with identical set up. Each tab has a different name. The macro is supposed to copy every tab that is not named "Summary". However, for some reason it is skipping over some of the tabs. I can't figure it out! Sample spreadsheet and code attached. Based on the number of tabs (16) and number of rows entered on each tab (6), a total of 96 rows should be copied to the summary sheet, but only 48 are being copied. The rhyme and/or reason behind the missed tabs is a mystery! Please help

    Please Login or Register  to view this content.
    Attached Files Attached Files

  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: Macro skipping over tabs...Can't figure out why

    Let's simplify a little.

    1) UNMERGE the cells A1185:B1185.
    2) Put TOTAL HOURS in B1185 and clear A1185 completely, make sure it stays empty.

    Now we can look UP column A from the bottom and always find the last used row with no interference.

    3) Here's a simpler version of your macro:
    Please Login or Register  to view this content.

    This version of the macro will work regardless of how many sheets you may add in the future.
    _________________
    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!)

+ 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: 05-21-2014, 04:30 PM
  2. Replies: 4
    Last Post: 02-03-2014, 08:05 AM
  3. Skipping Blank cells in formula(searched but cant figure how to apply)
    By scotinexcile in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 08-21-2012, 09:14 PM
  4. Replies: 6
    Last Post: 02-01-2012, 05:29 PM
  5. [SOLVED] reference row on another sheet skipping zeros but not skipping li.
    By Brennan Downes in forum Excel General
    Replies: 0
    Last Post: 04-20-2005, 12: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