Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Testing an object varible for Nothing

Hello all,

How do I test if an object variable is set to Nothing in an If...Then statement?

--
Thanks for any help anyone can provide,

Conan Kelly


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Testing an object varible for Nothing

if obj Is N othing Then
'do something

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Conan Kelly" <CTBarbarin at msn dot com wrote in message
...
Hello all,

How do I test if an object variable is set to Nothing in an If...Then

statement?

--
Thanks for any help anyone can provide,

Conan Kelly




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Testing an object varible for Nothing

Typo

if obj Is Nothing Then
'do something

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Conan Kelly" <CTBarbarin at msn dot com wrote in message
...
Hello all,

How do I test if an object variable is set to Nothing in an If...Then

statement?

--
Thanks for any help anyone can provide,

Conan Kelly




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Testing an object varible for Nothing

Bob,

Thanks for your help,

Conan


"Bob Phillips" wrote in message ...
Typo

if obj Is Nothing Then
'do something

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Conan Kelly" <CTBarbarin at msn dot com wrote in message
...
Hello all,

How do I test if an object variable is set to Nothing in an If...Then

statement?

--
Thanks for any help anyone can provide,

Conan Kelly






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 167
Default Testing an object varible for Nothing

I just did this today. Here's how I did it:

If something Is Nothing Then
...do stuff...
End If

Sincerely,
Pflugs

"Conan Kelly" wrote:

Hello all,

How do I test if an object variable is set to Nothing in an If...Then statement?

--
Thanks for any help anyone can provide,

Conan Kelly





  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Testing an object varible for Nothing

Pflugs,

Thanks for the help,

Conan


"Pflugs" wrote in message ...
I just did this today. Here's how I did it:

If something Is Nothing Then
...do stuff...
End If

Sincerely,
Pflugs

"Conan Kelly" wrote:

Hello all,

How do I test if an object variable is set to Nothing in an If...Then statement?

--
Thanks for any help anyone can provide,

Conan Kelly





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
varible table not spxer Excel Worksheet Functions 3 August 4th 06 05:13 PM
Offsetting a varible?? Ashley Milford via OfficeKB.com Excel Programming 5 June 2nd 05 03:38 PM
Range name as varible [email protected] Excel Programming 4 February 9th 05 03:31 PM
Varible in a Range mushy_peas[_11_] Excel Programming 3 January 17th 04 02:06 AM
how to start from varible row Vimal[_2_] Excel Programming 2 October 14th 03 08:44 AM


All times are GMT +1. The time now is 05:47 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"