I have this macro stored in my personal.xlsb folder and it is stored in "This Workbook".
Everytime a workbook is open a want to run a SUB() that checks the name of the workbook and does something depending on certain workbook names....
i am trying this small macro just to test it and It doesnt run automatically once a workbook opens.
Private Sub Workbook_Open()
If ActiveWorkbook.Name = "indeed" Then
msgBox (ActiveWorkbook.Name)
Else
MsgBox (ActiveWorkbook.Name)
End If
End Sub
what am i doing wrong to have this run automatically everytime a workbook is opened? thanks
Everytime a workbook is open a want to run a SUB() that checks the name of the workbook and does something depending on certain workbook names....
i am trying this small macro just to test it and It doesnt run automatically once a workbook opens.
Private Sub Workbook_Open()
If ActiveWorkbook.Name = "indeed" Then
msgBox (ActiveWorkbook.Name)
Else
MsgBox (ActiveWorkbook.Name)
End If
End Sub
what am i doing wrong to have this run automatically everytime a workbook is opened? thanks