Johnny C
Well-known Member
- Joined
- Nov 7, 2006
- Messages
- 1,069
- Office Version
- 365
- Platform
- Windows
I've got a userform which monitors progress of some VBA.
In a sub called by the userform.activate event, there are a load of Me.<> statements which update things on the userform.
it was working fine but I've made a lot of changes - nothing to do with the userform, just processing changes, and haven't run the macro for a few weeks.
Now I've jsut started it for final testing, and it falls over on compile with the following error:
"Invalid use of Me Keyword"
The line it's falling over on (which was fine before) is
The error help isn't much use, it's just about using Me in class modules, not ordinary modules, and as I say it was working fine before.
Can anyone shed light on this?
TIA
In a sub called by the userform.activate event, there are a load of Me.<> statements which update things on the userform.
it was working fine but I've made a lot of changes - nothing to do with the userform, just processing changes, and haven't run the macro for a few weeks.
Now I've jsut started it for final testing, and it falls over on compile with the following error:
"Invalid use of Me Keyword"
The line it's falling over on (which was fine before) is
Code:
Me.lblCurrentStatus.Caption = "Initialising - clearing old data"
The error help isn't much use, it's just about using Me in class modules, not ordinary modules, and as I say it was working fine before.
Can anyone shed light on this?
TIA