ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   row number (https://www.excelbanter.com/excel-programming/291811-row-number.html)

fred

row number
 
Hi

I want to select a row from a standard worksheet and in vba be able to
access that row using a variable.

ie click row 6
in vba use x=6

(familar with dim etc)

thank you

fred

Trevor Shuttleworth

row number
 
Fred

x=6: rows(x).select

Regards

Trevor


"fred" wrote in message
om...
Hi

I want to select a row from a standard worksheet and in vba be able to
access that row using a variable.

ie click row 6
in vba use x=6

(familar with dim etc)

thank you

fred




Bob Phillips[_6_]

row number
 
Hi Fred,

x = Activecell.Row

--

HTH

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

"fred" wrote in message
om...
Hi

I want to select a row from a standard worksheet and in vba be able to
access that row using a variable.

ie click row 6
in vba use x=6

(familar with dim etc)

thank you

fred





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

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