RWayneH
asked on
Retaining a value
I use the code below to determine a value, however later in the procedure I would like to use it again and the value is empty? Is there a way to make this a global value so it is not lost? Or a way to carry the value from one procedure to another? Trying to determine just where I am losing it.
session.findById("wnd[0]/u sr/ctxtRMM G1-MATNR") .Text = strValidMatlNum
session.findById("wnd[0]/u
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
RWayneH
You should always use Option Explicit as it helps you find undeclared variables, and you should always declare your variables.:)
You should always use Option Explicit as it helps you find undeclared variables, and you should always declare your variables.:)
^ What imnorie said. If you add the Option Explicit and then do a compile (VBA menu: Debug - Compile VBA Project) you'll be alerted to any/all undeclared variables.
-Glenn
-Glenn
ASKER
Thanks for the help.
You're welcome.
ASKER