how to count rows (1 Viewer)

exaccess

Registered User.
Local time
Today, 23:03
Joined
Apr 21, 2013
Messages
287
HI Experts,
I have two quite simple questions:
what is the statement for finding the number of rows with at least one field filled. Similar question for columns, but this time first I want to know to know the column label together with its number as integer. Secondly using these two numbers I want to define a range in which I will do the rest of the project. Here is code that I tried. But it does not work:
Code:
IMAXC = ActiveSheet.Cells(Rows.Count, "F").UsedRange.Rows.Countset
IMAXR = ActiveSheet.Cells(Rows.Count, "F").End(xlUp).Row[CODE]
[/CODE]
I know the code looks stupid, but I am perplexed and confused. Could anybody help please
 

JHB

Have been here a while
Local time
Today, 23:03
Joined
Jun 17, 2012
Messages
7,732
I think you've a better change to get a proper response if you post in the Excel - forum. :)
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Tomorrow, 05:03
Joined
May 7, 2009
Messages
19,229
your range address will be:

debug.print ActiveSheet.UsedRange. Address
 

exaccess

Registered User.
Local time
Today, 23:03
Joined
Apr 21, 2013
Messages
287
Hi Experts. Due to internal reasons this project has been abandoned. Thanks a lot for those who tried to help with all their good will.
 

Users who are viewing this thread

Top Bottom