LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,549
Default Read and write an array

I can't answer your question as it is difficult to see your script from here.
You can check for blank cells with...

If Len(rCell.Value) = 0 Then
-or-
If IsEmpty(rCell) Then

Checking for "blank" array elements depends on the data type of the array.
Numeric array elements are 0.
Object array elements are "Nothing"
String array elements are ""
Variant array elements are "Empty"
--
Jim Cone




"Dave L"
wrote in message
Thanks again Jim! I think I can make this work. I have one more question and
I'll try to stop bugging you. I need to ignore empty cells in my range. In
other words if I have values in all cells in range A1:A4 except for A3, I
need to write cells B1:B3 with the values from A1, A2 and A4. Is that easy or
should I just write a clean up script to get rid of blank values after
they're written?
 
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
Array to read data from one sheet and write to another if it meets criteria RudyShoe Excel Programming 2 August 2nd 06 04:38 PM
I have a read only xl file, I need it to be read and write drama queen Excel Discussion (Misc queries) 3 July 1st 06 12:25 AM
Read/Write mattsvai[_14_] Excel Programming 4 March 30th 06 01:55 AM
How can a file be converted from Read-Only to Read/Write Jim in Apopka Excel Discussion (Misc queries) 2 November 19th 05 04:59 PM
Who has read/write John Pritchard Excel Programming 0 September 28th 04 04:36 PM


All times are GMT +1. The time now is 08:40 AM.

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

About Us

"It's about Microsoft Excel"