ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   getting back a cell adress into a range variable (https://www.excelbanter.com/excel-programming/435393-getting-back-cell-adress-into-range-variable.html)

Alberto Ast[_2_]

getting back a cell adress into a range variable
 
previousy I store a cell.adress into A2

So A2 shows as $R$5

now I need to pull this address store in A2 back into a range variable so I
can use it to select a larger range.
How can I do ti?

Jacob Skaria

getting back a cell adress into a range variable
 
Dim myRange as Range
Set myrange = Range(CStr(Range("A2")))


'Range(myrange, yourotherrangeaddress).Select

If this post helps click Yes
---------------
Jacob Skaria


"Alberto Ast" wrote:

previousy I store a cell.adress into A2

So A2 shows as $R$5

now I need to pull this address store in A2 back into a range variable so I
can use it to select a larger range.
How can I do ti?



All times are GMT +1. The time now is 09:45 AM.

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