|
-
November 16th, 2002, 11:18 AM
#1
Excel Rows ansd columns
Is there a way to detect the number of IN USE rows and columns in a spreadsheet?
-
November 16th, 2002, 11:19 AM
#2
An EXCEL spreadsheet that is.
-
November 16th, 2002, 11:36 AM
#3
Looping through them in the following manner may do it. I'm assuming your wanting some VBA and not wanting to do this from a VB application :-)
While Not Worksheets(MySheet).Cells(x + i, y + j) = ""
'put a loop count here
Wend
-
November 16th, 2002, 12:15 PM
#4
"IN USE"?
As in being selected/highlighted? The Range.Areas returns the range being selected (including multiple-selection)
As in -- having a value? -- I think you can use the IsEmpty() function in VBA.
Marketing our skills - please participate in the survey and share your insights
-
-
November 16th, 2002, 11:23 PM
#5
Set RangeToChek = ActiveCell.CurrentRegion
RangeToChek.Rows.Count -> will give you the Max Row
RangeToChek.Columns.Count -> will give you the Max Column
Please Note that there should not be any Blank Column or A Row in between.
This works in Macros,
This should work. I've not tried. You may please verify.
Good Luck
Nilapriyan
------------------------------------------------
Learnt is Handful! To Learn is Ocean.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|