Excel help.
 

MegaSack DRAW - This year's winner is user - rgwb
We will be in touch

[Closed] Excel help.

2 Posts
2 Users
0 Reactions
49 Views
 mrmo
Posts: 10710
Free Member
Topic starter
 

Query is this.

I have a number of cells that may or may not have content.
I have a second worksheet where i need to insert lines based on the number of cells with contents mentioned above.

Range("").cells.count gives me the total number of cells in the range, which is almost what i want.

rows.insert does the second part

Is there a way of saying usedrange("").cells.count, that works?

I could use brute force and simply do a if null else approach as it is only 25 cells, but doesn't strike me as very neat and i would hope that a better method exists.


 
Posted : 19/05/2009 12:31 pm
Posts: 0
Free Member
 

CountA() is what you are after I think


 
Posted : 19/05/2009 12:41 pm
 mrmo
Posts: 10710
Free Member
Topic starter
 

Thanks, works perfectly.


 
Posted : 19/05/2009 12:55 pm