Results 1 to 11 of 11

copying sheet issue caused by hidden sheets in fhile

Threaded View

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,712

    copying sheet issue caused by hidden sheets in fhile

    hi,

    i am having a problem. I have a file (see enclosed). THere are 5 sheets in the file.

    sheets labeled: tstsht1, tstsht2, tstsht3, main, tstsht5

    I have "hidden" tstsht3 and tstsht5.

    What i am trying to do is copy the "main" sheet and paste into a new sheet into the workbook. Once macro is done i should have 5 new sheets labeled "1_1", "1_2", "1_3", "1_4", and "1_5". This is indeed what i get when ALL sheets NOT hidden. However, when i hide "tstsht3" and "tstsht5" the macro does not work correctly. The new sheets created are "main (2)", "main (3)", "main (4)", "main (5)", "main (6)".

    Obviously, the problem has something to do with hiding the sheets "tstsht3" and "tstsht5" but i dont know why and i dont know how to fix the problem other than run the macro and then hide all the sheets at the end but i would rather not do this.

    Can someone help?
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Selecting a sheet from a range - issue with hidden sheets.
    By Barking_Mad in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-08-2013, 09:38 AM
  2. 3D Referencing
    By Chax in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 11-22-2012, 12:54 PM
  3. Copying formulas on hidden sheet
    By solnajeff in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-28-2011, 09:23 AM
  4. Issue with Sheet Hidden
    By mari_hitz in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-27-2011, 04:09 PM
  5. copying hidden cells and paste to non hidden cells on same sheet
    By 2newguy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-11-2007, 02:39 PM
  6. "With Sheets" Issue - macro on one sheet to affect hidden rows on other sheets
    By Punsterr in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-21-2006, 12:10 AM
  7. Copying Data to a hidden Sheet
    By tags in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-12-2005, 01:08 PM

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