View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Tomek[_3_] Tomek[_3_] is offline
external usenet poster
 
Posts: 5
Default How to refer to a blank/null value?

I'd do it this way:

If myString<"" Then
cells(n,9).Value = CDbl(myString)
End If


"desmondleow" wrote in message
...
I have the following If Else statement:

If CDbl(myString) < "" Then
cells(n,9).Value = CDbl(myString)
End If


However, it doesn't work. MyString is declared as a String and it is
copying a field from another application. How can I check that
myString is empty/null?


---
Message posted from http://www.ExcelForum.com/