check if variable is set

Q

Question Boy

how can I validate if a variable is set in my code?

set olApp = ....

How can i check that this line ran properly and actually set the variable?

IsNull, IsEmpty,Ismissing,... what should I use in this case?

QB
 
D

dymondjack

IsEmpty(), I believe.

IsMissing is only for arguments and I'm pretty sure IsNull doesn't work in
this case


--
Jack Leach
www.tristatemachine.com

- "First, get your information. Then, you can distort it at your leisure."
- Mark Twain
 
J

John W. Vinson

how can I validate if a variable is set in my code?

set olApp = ....

How can i check that this line ran properly and actually set the variable?

IsNull, IsEmpty,Ismissing,... what should I use in this case?

QB

Try

Is Nothing
 
M

Marshall Barton

Question said:
how can I validate if a variable is set in my code?

set olApp = ....

How can i check that this line ran properly and actually set the variable?

IsNull, IsEmpty,Ismissing,... what should I use in this case?


Try:
olApp Is Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top