I am trying to fix an Excel macro that was coded by someone who is no longer around. When I run it, I get a "Reference is not Valid" error, I think because the sheet the code is trying to reference is hidden. I have tried to unhide the sheet, and I have been unable to. However if I loop through all of the worksheets in the workbook, I can see the sheet exists. I have tried
Worksheets(1).Visible = True
and
sheets("Cash Flows").Visible = True
How can I unhide this worksheet?
Worksheets(1).Visible = True
and
sheets("Cash Flows").Visible = True
How can I unhide this worksheet?