Hi again,
Unfortunately there are several basic errors in the code you posted originally, e.g.:
The compiler would have identified these errors if you had placed "Option Explicit" as the first line in the CodeModule - you should ALWAYS do this.
Also, you should not include open-ended "On Error Resume Next" statements - these can produce VERY strange/dangerous results! If you need to use them, you should always restore error handling as soon as possible by means of an "On Error GoTo 0" statement.
See if the attached version of your workbook does what you need - it uses the following code:
Worksheets CAN be copied (as hidden worksheets) when their Visible property is set to "Hidden" - it's only when that property is set to "VeryHidden" that they can't be copied.
Hope this helps - please let me know how you get on.
Regards,
Greg M
Bookmarks