ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Finding the Size of a Range in an Unopened Worksheet (https://www.excelbanter.com/excel-programming/382284-finding-size-range-unopened-worksheet.html)

Greg Glynn

Finding the Size of a Range in an Unopened Worksheet
 
Can I enquire on the size of a range in an unopened worksheet?

The line below doesn't work:
J = Workbooks("C:
\MyTables.XLS").Worksheets("cs_Tables").Range("CS_ Names").Rows.Count


Thanks in advance,

Greg


Greg Glynn

Finding the Size of a Range in an Unopened Worksheet
 
Ahhh .. Never mind ... I'll just open it READ ONLY instead (was
worried about it being locked if another user tried to open it).

Regards

Greg


On Jan 31, 3:45 pm, "Greg Glynn" wrote:
Can I enquire on the size of a range in an unopened worksheet?

The line below doesn't work:
J = Workbooks("C:
\MyTables.XLS").Worksheets("cs_Tables").Range("CS_ Names").Rows.Count

Thanks in advance,

Greg





All times are GMT +1. The time now is 11:13 AM.

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