Excel prompt out an error message that : "Compile Error: Invalid Outside Procedure".
The code it highlights is "PR_Form" in code:
I put this code outside subs.
How can I solve this problem?
Thanks!
The code it highlights is "PR_Form" in code:
Code:
'-------------------------------------
'declaration of some PR Form variables
'-------------------------------------
Public Pr As Worksheet 'PR Form worksheet shorhand
Pr = ThisWorkbook.Worksheets("PR_Form") 'set value to Pr
I put this code outside subs.
How can I solve this problem?
Thanks!