ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   "rows" syntax (https://www.excelbanter.com/excel-programming/292498-rows-syntax.html)

Michael J. Malinsky

"rows" syntax
 
The following selects rows 1 and 2:

Sub Row_Select()

Rows("1:2").Select

End Sub


--
Michael J. Malinsky


"Claude" wrote in message
...
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!




Claude

"rows" syntax
 
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!

Frank Kabel

"rows" syntax
 
Hi
one way:
Range(Rows(a),rows(b)).select

--
Regards
Frank Kabel
Frankfurt, Germany

Claude wrote:
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!


Bob Phillips[_6_]

"rows" syntax
 
Hi Claude,

rows("1:5").select


if a and b are variables then

rows(a & ":" & b).Select

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Claude" wrote in message
...
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!




Claude

"rows" syntax
 
Thanks Frank, this is what I was looking for...

-----Original Message-----
Hi
one way:
Range(Rows(a),rows(b)).select

--
Regards
Frank Kabel
Frankfurt, Germany

Claude wrote:
I would like to select a range of rows as follows:
Rows(a,b).Select
Can anybody help me with the correct syntax? Thanks!

.



All times are GMT +1. The time now is 05:42 PM.

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