ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Column. (https://www.excelbanter.com/excel-programming/291433-column.html)

TJF[_3_]

Column.
 
Hello,

I need use something like:

new = range("A" + x & 2).value

when x = 2 then I need this result

new = range("B" & 2).value

Is this somehow possible?

Thanks Tom



Juan Pablo González

Column.
 
Use the Cells object instead

new = Cells(2, 1 + x).Value

--
Regards,

Juan Pablo González

"TJF" wrote in message
...
Hello,

I need use something like:

new = range("A" + x & 2).value

when x = 2 then I need this result

new = range("B" & 2).value

Is this somehow possible?

Thanks Tom






All times are GMT +1. The time now is 09:25 PM.

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