I'm trying to refer to a worksheet from an Add-In in a workbook open event. The Add-In has the code.
I've learnt that ThisWorkbook relates to the Add-In and ActiveWorkbook refers to the workbook you are working on.
When I test though: The first line works and goes the name of the sheet in the Add-In.
The second part gives an error message.
Why?
![]()
Please Login or Register to view this content.
Bookmarks