ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Null Operator (https://www.excelbanter.com/excel-programming/350893-null-operator.html)

Raleigh

Null Operator
 
What is the null operator in VB? Like if i wanted to say...
If Cells (7,1) = NULL or empty
How would I go about doing that?


Bob Phillips[_6_]

Null Operator
 
A few ways depending upon what it contains

If IsEmpty(Cells (7,1).Value) Then

If Cells (7,1).Value = "" Then

If Len(Cells (7,1).Value) = 0 Then

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Raleigh" wrote in message
...
What is the null operator in VB? Like if i wanted to say...
If Cells (7,1) = NULL or empty
How would I go about doing that?





All times are GMT +1. The time now is 11:59 PM.

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