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?
Bookmarks