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
Sysprep for Ghost 2002
Edit existing MIDI files and convert WAV to .MID
Powershell: How can I run a program with a parameter list that is stored in a variable?
SQL SERVER 2005 Error Sending Emails with attachments using Report Services Portal
Excel macros sending file with different name
End of Life for XP - should I start looking at Vista?
Inportant Changes in ADS
Outlook Mailbox size overlimit
a problem with rcmd and rexec routines
User Rights on 2008 Domain