Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check null for range objects
With ActiveSheet.AutoFilter.Range
On Error Resume Next Set rng = .Offset(1, 0).Resize(.Rows.Count - 1 1).SpecialCells(xlCellTypeVisible) Set rng2 rng.Columns(17).SpecialCells(xlCellTypeVisible) End with Hi all, How can I check if rng and rng2 are null? I used isNull() and isEmpty(), but both give the wrong answer to me :( Thanks -- Message posted from http://www.ExcelForum.com |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check null for range objects
Hi Kaon.
If rng is Nothing Then ' do something End if or, more usually, the reverse condition: If not rng is nothing Then ' do something End if -- --- Regards, Norman "kaon " wrote in message ... With ActiveSheet.AutoFilter.Range On Error Resume Next Set rng = .Offset(1, 0).Resize(.Rows.Count - 1, 1).SpecialCells(xlCellTypeVisible) Set rng2 = rng.Columns(17).SpecialCells(xlCellTypeVisible) End with Hi all, How can I check if rng and rng2 are null? I used isNull() and isEmpty(), but both give the wrong answer to me. :( Thanks. --- Message posted from http://www.ExcelForum.com/ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Check null for range objects
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sum a range that IS NOT NULL | Excel Worksheet Functions | |||
Failed to save table attributes of (null) into (null). | Excel Discussion (Misc queries) | |||
replace null cells within a range to 0 | Excel Discussion (Misc queries) | |||
Specify a null value in an Excel Database criteria range | Excel Worksheet Functions | |||
Finding first Null value in range? | Excel Programming |