Hidden worksheets/workbooks have some limitations to what can be done in VBA code, like most Select and Selection statements, and anything coming from ActiveSheet, but I can’t seem to find any list of what the limitations are.
Google, the built-in documentation in the help system, and MSDN’s website have all failed me. Can anyone point me in the right direction?
Edit:
The workbook is opened with
Set WB_Master = Workbooks.Open(Filename:=PATH_Master, ReadOnly:=False)
and then hidden with
WB_Master.Windows(1).Visible = False
From the Visual Basic for Applications help:
Not much help there I’m afraid, and I couldn’t find much else through Google.
As you said yourself, the Select method and Selection Property don’t work on a hidden Worksheet, they should work on a hidden Workbook though. (Please correct me if I’m wrong.) In general however, it’s not always all that efficient to select ranges in worksheets anyway, you are better off working with the Range property (which does work on a hidden worksheet).
EDIT:
The following code will change the color of A1:A8 to Cyan even when the Worksheet is not visible: