LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default If Not c Is Nothing Then

c is going to be an object of some sort. One possiblity is c is going to be a
range object (a range is a cell or group of cells on one sheet. Being that c
is an object until it has been "Set" to something it will be "Nothing". Once
it is set then it essentially points at a range. One common use for checking
for nothing is when you do a "Find" operation. If nothing is found then the
range object is still nothing. Now you check the c to determine if it is
nothing, or if it points to the found cell.
--
HTH...

Jim Thomlinson


"iron" wrote:

I've been around Excel for a number of years, but am new to VBA. I recently
came across the code "If Not c Is Nothing Then". Could someone explain to me
what this means...the double negative throws me.

 
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



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

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

About Us

"It's about Microsoft Excel"