ThisWorkbook should refer to the workbook in which the macro is running.
You can declare a workbook variable:
and then set that variable to a workbook using "Workbook.Open":![]()
dim wb as workbook
or you can select an already open workbook using its name![]()
set wb = Workbook.Open(<fullpathandworkbookname>)
![]()
set wb = Workbooks(<yourworkbookname>)
Bookmarks