Hiya,
trying to unhide all the worksheets in a workbook. My code skips from 1 wb to another and when in a workbook often switches between worksheets to gather and colate data.
Having hidden worksheets is causing me problems, but the specification I'm working to demands that they remain hidden except when being accessed by the code. I'm trying to unhide all wsheets and can't get it to work.
I've tried 2 methods:
and whilst in the workbook Run.xls is the active wb
Both approaches yield the error message Method 'Visible' of object 'Sheets' Failed.
Can someone help please, I'm starting to want to pull my hair out!
trying to unhide all the worksheets in a workbook. My code skips from 1 wb to another and when in a workbook often switches between worksheets to gather and colate data.
Having hidden worksheets is causing me problems, but the specification I'm working to demands that they remain hidden except when being accessed by the code. I'm trying to unhide all wsheets and can't get it to work.
I've tried 2 methods:
Code:
Application.Workbooks("Run.xls").Worksheets.Visible = True
Code:
With ActiveWorkbook.Worksheets
.Visible = True
End With
Can someone help please, I'm starting to want to pull my hair out!