I have a program with two open workbooks -- one has data in it, the other has parameters for running the program. All code is in personal.xlsb.
I have to switch between the two workbooks during the processing loop, but I can't activate the worksheet that's on the bottom. Here's the code that represents it, below is the results.
Here are the results:
If the Parms sheet is open on top:
set MyBook active Parms.xlsm RunParms
Set PBook active Parms.xlsm RunParms
If the Registered sheet is open on top:
set MyBook active 50K Records.xlsm Registered
Set PBook active 50K Records.xlsm Registered
If I explicitly activate the sheets, as in the code below, I get a runtime error 9 subscript out of range on whichever sheet is underneath:
Thanks for your help.
Bookmarks