Greetings,
I have a application that...
(a.) opens an existing Excel WorkBook,
(b.) adds a new WorkSheet (sheet4) and
(c.) populates sheet4 with data.
My Problem: when I open the Visual Basic editor and look at the Project Explorer, Sheet4 isn't visible. Moreover, if I attempt to reference Sheet4 in my VBA code, a 424 error (object required) is raised.
HOWEVER, if I click on the 'ThisWorkBook' object within the Project Explorer, Sheet4 is visible and the program functions correctly.
Unfortunately, I cannot have a user jump through that kind of hoop to get the program to work.
Does anybody know how to enable the WorkBook to 'refresh' (for lack of a better word) and see that a sheet4 actually exists?
I'm totally clueless here. I greatly appreciate any and all help anyone can provide.
Thanks
I have a application that...
(a.) opens an existing Excel WorkBook,
(b.) adds a new WorkSheet (sheet4) and
(c.) populates sheet4 with data.
My Problem: when I open the Visual Basic editor and look at the Project Explorer, Sheet4 isn't visible. Moreover, if I attempt to reference Sheet4 in my VBA code, a 424 error (object required) is raised.
HOWEVER, if I click on the 'ThisWorkBook' object within the Project Explorer, Sheet4 is visible and the program functions correctly.
Unfortunately, I cannot have a user jump through that kind of hoop to get the program to work.
Does anybody know how to enable the WorkBook to 'refresh' (for lack of a better word) and see that a sheet4 actually exists?
I'm totally clueless here. I greatly appreciate any and all help anyone can provide.
Thanks