Apr 27, 2005 #1 Ramy27 Technical User Apr 26, 2005 63 GB To count occupied cells in column D j = wb.Sheets("Job codes").WorksheetFunction.CountA(D) doesn't work. What correction is needed here? --------------------------------- Your help is much appreciated, R. ---------------------------------
To count occupied cells in column D j = wb.Sheets("Job codes").WorksheetFunction.CountA(D) doesn't work. What correction is needed here? --------------------------------- Your help is much appreciated, R. ---------------------------------
Apr 27, 2005 1 #2 PHV MIS Nov 8, 2002 53,708 FR And this ? Set myRange = wb.Sheets("Job codes").Range("D") j = WorksheetFunction.CountA(myRange) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244 Upvote 0 Downvote
And this ? Set myRange = wb.Sheets("Job codes").Range("D") j = WorksheetFunction.CountA(myRange) Hope This Helps, PH. Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
Apr 27, 2005 Thread starter #3 Ramy27 Technical User Apr 26, 2005 63 GB Yes, it does. Thanks. I don't know how you managed to learn all these!! Well done. --------------------------------- Your help is much appreciated, R. --------------------------------- Upvote 0 Downvote
Yes, it does. Thanks. I don't know how you managed to learn all these!! Well done. --------------------------------- Your help is much appreciated, R. ---------------------------------
Apr 27, 2005 #4 PHV MIS Nov 8, 2002 53,708 FR I don't know how you managed to learn all these I only play with the F2 and F1 keys in VBE ... Upvote 0 Downvote
May 3, 2005 Thread starter #5 Ramy27 Technical User Apr 26, 2005 63 GB Like we have: Set myRange = wb.Sheets("Job codes").Range("D") j = WorksheetFunction.CountA(myRange) in the above post, is there a way to count occupied ROWS - considering columns A, C and D (for example) i.e, if column A, C or D has any data in it then count that row... --------------------------------- Your help is much appreciated, R. --------------------------------- Upvote 0 Downvote
Like we have: Set myRange = wb.Sheets("Job codes").Range("D") j = WorksheetFunction.CountA(myRange) in the above post, is there a way to count occupied ROWS - considering columns A, C and D (for example) i.e, if column A, C or D has any data in it then count that row... --------------------------------- Your help is much appreciated, R. ---------------------------------