ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Selecting rows (https://www.excelbanter.com/excel-programming/339011-selecting-rows.html)

Shatin[_2_]

Selecting rows
 
If I want to select rows 1 to 15, the syntax is:

rows("1:15").select

What if I want to select rows 1 to i where i is an integer?

Thanks!



Tim Williams

Selecting rows
 
rows("1:" & i).select

tim

"Shatin" wrote in message
...
If I want to select rows 1 to 15, the syntax is:

rows("1:15").select

What if I want to select rows 1 to i where i is an integer?

Thanks!





Shatin[_2_]

Selecting rows
 
Tim,

Many thanks for such a prompt reply!

"Tim Williams" <saxifrax@pacbell*dot*net wrote in message
...
rows("1:" & i).select

tim

"Shatin" wrote in message
...
If I want to select rows 1 to 15, the syntax is:

rows("1:15").select

What if I want to select rows 1 to i where i is an integer?

Thanks!








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

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