In the VBA editor type in either ThisWorkbook or ActiveWorkbook, leave the cursor somewhere in the word and press F1.
As you might expect
Returns the value from cell A1 of the first sheet of the workbook that holds the macro, whereas:
Returns cell A1 of the first sheet of the workbook that was active when the macro was called. While:
Gives you cell A1 of whichever sheet was active when you ran the macro.
I'd say that 99% of the macros I write use ThisWorkbook, ActiveWorkbook or ActiveSheet - they're very useful indeed.
Bookmarks