I have an application I wish to convert to an add-in. The macros in the application apply to only a specific type of workbook that I have identified by the title property. On open, there are a few operations I need to perform including adding the toolbar. I've tried the Aut
pen and Workbook_Open event procedures but they do not work. I get an "Object variable or With block variable not set" error. I believe this is because these event procedures are triggered when the add-in is opened and the actual workbook I want to refer to has not yet opened.
The code I am using is:
Private Sub Workbook_Open
If UCase(ActiveWorkbook.BuiltInDocumentProperties("Title")) = "TIME TRACKING TOOL" Then
....
End If
Anyone have any ideas?
Thanks,
Vlip
The code I am using is:
Private Sub Workbook_Open
If UCase(ActiveWorkbook.BuiltInDocumentProperties("Title")) = "TIME TRACKING TOOL" Then
....
End If
Anyone have any ideas?
Thanks,
Vlip