#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default empty cells

in a spreadsheet, i have a series of dates in a column, but many are blank.
this column is created via formula: in a1: =if(c1="is a date",b1,""),
where info in column b are dates, but not all are wanted in column a's
formula.
the problem arises in code when i try to define what's in column a (dates
and blanks).
for i = 1 to 100
maturitydate=cells(i,1).value
next i

if cells(i,1) are blank (caused by "" in excel formual), code stops and
cannot assign a blank to 'maturitydate'. if, however, i go back and
overwrite the formula in excel and simply clearcontents, it works in code.
can i write a formula in excel spreadsheet that has false statement that
will be treated in code as blank? i can use "0" as false statement vs. "",
but it messes other things up. any thoughts? thanks, mike allen


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
skipping empty cells that are not empty quizkiwi[_4_] Excel Programming 3 October 3rd 05 06:59 PM
Excel - Autom. Filter "Empty / Non Empty cells" should come first Rom Excel Discussion (Misc queries) 0 August 10th 05 04:32 PM
How can I convert empty strings to empty cells? Shane Excel Discussion (Misc queries) 2 July 19th 05 12:10 PM
macro to colour empty cells (cells not recognized as empty) Gerben Excel Programming 5 June 30th 05 03:29 PM
Can blank cells created using empty Double-Quotes not be empty?? JohnI in Brisbane Excel Programming 6 September 7th 03 11:22 PM


All times are GMT +1. The time now is 03:48 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"