ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   selecting a range in vb (https://www.excelbanter.com/excel-programming/286593-selecting-range-vbulletin.html)

jws217

selecting a range in vb
 
How do I select a range in vb macro by using a variable as the ro
number

my prototype looks like this:
range("Az").select

where A is the column and z is a variabl

--
Message posted from http://www.ExcelForum.com


Bob Phillips[_6_]

selecting a range in vb
 
Range("A" & Castro(z)).Select

--

HTH

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

"jws217" wrote in message
...
How do I select a range in vb macro by using a variable as the row
number

my prototype looks like this:
range("Az").select

where A is the column and z is a variable


---
Message posted from http://www.ExcelForum.com/





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

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