ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Application.Rows (https://www.excelbanter.com/excel-programming/445466-application-rows.html)

kittronald

Application.Rows
 
How can you use "Application.Rows" to calculate the number of rows in
the range below ?

The defined name "Test" refers to Sheet1!$A$1:$A$2

Set src = Workbooks("Book1.xlsb").Names("Test").RefersToRang e


kittronald




Jim Cone[_2_]

Application.Rows
 

How about you don't and instead use: src.Rows.Count
--
Jim Cone
Portland, Oregon USA
http://blog.contextures.com/archives...ith-excel-vba/





"kittronald"
wrote in message
...
How can you use "Application.Rows" to calculate the number of rows in
the range below ?

The defined name "Test" refers to Sheet1!$A$1:$A$2

Set src = Workbooks("Book1.xlsb").Names("Test").RefersToRang e


kittronald




kittronald

Application.Rows
 
Jim,

That'll do it !

Thanks.


kittronald




All times are GMT +1. The time now is 08:27 AM.

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