Whenever you do something in VBA, by default it references whatever the active book / sheet is. So when you do something like this:
You are really doing this:
If instead you want to refer to a book that is not the active book, you can refer to it directly:
This defines precisely which workbook and worksheet you would like to work with, and will work with any currently open workbook. This gets a bit cumbersome so you usually set a reference to that.
Now you could use the following instead of typing all of that out:
In this example, we have set MyShortcut to refer specifically to the sheet named "Sheet1" in the workbook MyTest.xls.
Bookmarks