ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   How to test for Not Nothing (https://www.excelbanter.com/excel-programming/365132-how-test-not-nothing.html)

jotor14

How to test for Not Nothing
 
if I have a workbook object such as

dim wb as workbook

I know how to test if wb is nothing

but dumb question how do you test for Not nothing ???

if wb is not nothing then
wb.save
wb.close
end if

Otto Moehrbach

How to test for Not Nothing
 
If Not wb is Nothing then
HTH Otto
"jotor14" wrote in message
...
if I have a workbook object such as

dim wb as workbook

I know how to test if wb is nothing

but dumb question how do you test for Not nothing ???

if wb is not nothing then
wb.save
wb.close
end if




jotor14

How to test for Not Nothing
 
Thanks sooo much.

"Otto Moehrbach" wrote:

If Not wb is Nothing then
HTH Otto
"jotor14" wrote in message
...
if I have a workbook object such as

dim wb as workbook

I know how to test if wb is nothing

but dumb question how do you test for Not nothing ???

if wb is not nothing then
wb.save
wb.close
end if






All times are GMT +1. The time now is 02:17 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com