ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   subscript out of range error: tyring to copy a hidden sheet (https://www.excelbanter.com/excel-programming/432168-subscript-out-range-error-tyring-copy-hidden-sheet.html)

Sam

subscript out of range error: tyring to copy a hidden sheet
 
I got a subscript out of range error when trying to copy sheet2. Sheet2 is
hidden.

here is the code:

Worksheets("Hidden").Copy Worksheets("Sheet2")

Thanks in advance

JLGWhiz[_2_]

subscript out of range error: tyring to copy a hidden sheet
 
Subscript out of Range indicates that VBA cannot find an Object with the
name used. Check your spelling and be sure the name you use exists.



"sam" wrote in message
...
I got a subscript out of range error when trying to copy sheet2. Sheet2 is
hidden.

here is the code:

Worksheets("Hidden").Copy Worksheets("Sheet2")

Thanks in advance





All times are GMT +1. The time now is 12:58 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com