Microsoft
Software
Hardware
Network
Question : Excel VBA - Public variable "Out of context"
Hi
I have declared a variable at the top of a module as follows:
Public oNewItem as String
The variable is assigned a value in another module but seems to lose it at the end of the procedure.
When I add a watch I see
at this point.
Thanks
Answer : Excel VBA - Public variable "Out of context"
That means you have defined that same variable name inside the routine. Change it's name in the routine or remove it altogether.
Kevin
Random Solutions
Auto Number in Query
Tally fails to get license from server
Change MSGraph Chart Type
IE 6.0.2xxx will NOT save my passwords to CERTAIN websites (no auto-login)
Exchange 2007 CCR Seeding status shows False?
How do I make shared folders available to the generic user?
SQL DATETIME Compare HELP
Arcserve underestimates the free space on a File System Device
stat=User unknown in /var/log/maillog
Lost msdcs records on DNS server