ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Sheet Size (https://www.excelbanter.com/excel-programming/331449-sheet-size.html)

John Peach

Sheet Size
 
Is it possible to find the extents of a sheet without selecting it ? i.e.
how many rows and columns have information in them

Thanks in advnace :-)



Chip Pearson

Sheet Size
 
You can use the UsedRange property to determine the rectangular
range containing data. E.g.,


MsgBox Worksheets("Sheet3").UsedRange.Address



"John Peach" wrote in message
...
Is it possible to find the extents of a sheet without selecting
it ? i.e. how many rows and columns have information in them

Thanks in advnace :-)




John Peach

Sheet Size
 
Thanks Chip, that's exactly what I was looking for

"Chip Pearson" wrote in message
...
You can use the UsedRange property to determine the rectangular range
containing data. E.g.,


MsgBox Worksheets("Sheet3").UsedRange.Address



"John Peach" wrote in message
...
Is it possible to find the extents of a sheet without selecting it ? i.e.
how many rows and columns have information in them

Thanks in advnace :-)







All times are GMT +1. The time now is 12:08 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com