Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default null value cell

Hi All,

Im attempting to create code to evaluating cell content. However, I am
having a little trouble creating code to recognize cells having no value or
null cell. Heres the code.

Sub testcode()
Sheets("DISPLAY").Select
If Range("O9").Value < Null Then
If Range("O9").Value < "FirstBoxDisputesRelated" Then
DropDownBox = Range("O9").Text
ActiveSheet.Shapes(DropDownBox).Select
Selection.Cut
End If
End If
End Sub

What changes are required to recognize cell O9 when the value does not equal
null?

Thanks
Paul


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default null value cell

Instead of testing for Null, test for an empty string. E.g.,

If Range("O9").Value < "" Then


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Paul" wrote in message
...
Hi All,

I'm attempting to create code to evaluating cell content.
However, I am
having a little trouble creating code to recognize cells having
no value or
null cell. Here's the code.

Sub testcode()
Sheets("DISPLAY").Select
If Range("O9").Value < Null Then
If Range("O9").Value < "FirstBoxDisputesRelated" Then
DropDownBox = Range("O9").Text
ActiveSheet.Shapes(DropDownBox).Select
Selection.Cut
End If
End If
End Sub

What changes are required to recognize cell O9 when the value
does not equal
null?

Thanks
Paul




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default null value cell

Thank You!!!!

"Chip Pearson" wrote:

Instead of testing for Null, test for an empty string. E.g.,

If Range("O9").Value < "" Then


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com



"Paul" wrote in message
...
Hi All,

I'm attempting to create code to evaluating cell content.
However, I am
having a little trouble creating code to recognize cells having
no value or
null cell. Here's the code.

Sub testcode()
Sheets("DISPLAY").Select
If Range("O9").Value < Null Then
If Range("O9").Value < "FirstBoxDisputesRelated" Then
DropDownBox = Range("O9").Text
ActiveSheet.Shapes(DropDownBox).Select
Selection.Cut
End If
End If
End Sub

What changes are required to recognize cell O9 when the value
does not equal
null?

Thanks
Paul





Reply
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
If cell not null use that value Neall Excel Worksheet Functions 1 May 7th 09 07:55 PM
Failed to save table attributes of (null) into (null). Luca Brasi Excel Discussion (Misc queries) 2 February 4th 09 04:30 PM
Sum a NULL cell ArcticWolf Excel Worksheet Functions 6 December 4th 08 02:04 PM
cell value based on null/not null in another cell spence Excel Worksheet Functions 1 February 18th 06 11:49 PM
Cell not null value? ddwebb Excel Programming 1 May 3rd 04 08:56 PM


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

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

About Us

"It's about Microsoft Excel"