Hello,
I have a procedure that is breaking on the line below:
The error message is:
"Compile error:
Sub or Function not defined"
However the target procedure is in another module within the same project as below:
It appears that I am being told that I haven't created a module that I am targetting, but I am sure I have done so. Please could somebody help?
Thanks,
Stu
I have a procedure that is breaking on the line below:
Code:
Call unprotect_visible_worksheets
"Compile error:
Sub or Function not defined"
However the target procedure is in another module within the same project as below:
Code:
Private Sub unprotect_visible_worksheets()
Call public_variables
Application.ScreenUpdating = False
For Each wSheet In Worksheets
wSheet.Unprotect Password:=protection_password
Next wSheet
Application.ScreenUpdating = True
End Sub
It appears that I am being told that I haven't created a module that I am targetting, but I am sure I have done so. Please could somebody help?
Thanks,
Stu