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
Python and GUI
Uninstal Problem
How to monitor Internet Usage on a Windows PC
WinXP SP2 settings not supported by GPO (from GPMC.msc)
Any free email harvesting programs?
How to create Photography Database For Clients ? Software etc...
International Domain Names
SQL Server Instance version & Database version
Is there a better way to write formula than use a nested if statement?
Verify failed when burn Mandriva iso image using Nero