
Originally Posted by
lsteinbach
The code is placed in THISWORKBOOK. The reason I'm trying to stay away from file names is because there are around 15 different Master files that will be the first workbook open, then around 20 different subsidiary files that could be the second workbook open. So I'd like to stay away from naming all these different files in the coding. When it comes to coding, my thought process can be somewhat linear, so if I am not understanding what you suggested, can you please provide a brief example?
Also, the computers running these two workbooks will be dedicated kiosks so there is no interference with any other workbooks.
Danke für jede Hilfe (google translate).
Luke
If the "master" workbooks only have the macro then try something like this...
Alternatively, you could loop through each opened workbook and look for a difference (cell.value, sheet name) that distinguishes a Master from a Subsidiary.
Bookmarks