Calling a procedure in a procedure
Hi Alex,
I could replicate your problem if I had a module named Summary.
If this is your situation, rename either the sub or the module.
---
Regards,
Norman
"Alex" wrote in message
...
I'm getting the following error..
Compile Error:
Expected variable or procedure, not module
When I run my macro and it shows this part of my code....
Finish = MsgBox("Click YES to finish report, Click NO to end." & Chr(13) &
_
"Rerun the M & S Macro if you need to add more reports", vbYesNo +
vbInformation)
If Finish = vbYes Then
Summary '<----- THIS PART IS HIGHLIGHTED ON ERROR
Exit Sub
Else
MsgBox "Let me know if this macro has helped you."
End If
BTW I do have a variable for this though it's not here.
Any ideas why the error?
|