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
How do I create an OU in Windows Server 2003?
cannot get driver to run
Task reports error from the ghost cast server. Connection reset by client.
MySQL create table question ........ default value for a field
hide the address & menu bar?
MYSQL Query Return Number Range
Multiple domain names, and Exchange
Loop through rows in listbox
How to install wsus on windows server 2008
Performance issues on 2003 x64 Server - disk queue length