ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Select column same row by range name (https://www.excelbanter.com/excel-programming/368937-select-column-same-row-range-name.html)

Kevryl

Select column same row by range name
 
I want to use a range name in a macro so I can change the column referenced
without changing the macro.

What I need to do in the macro is select a cell on the same row but within a
range named column. Say the name for the column is "bank", can someone give
me the syntax?

Thanks

NickHK

Select column same row by range name
 
Not sure, but something like:
Range("bank").Offset(0,10).select
Selects a cell in same row as "bank", but 10 columns to the right.

NickHK

"Kevryl" wrote in message
...
I want to use a range name in a macro so I can change the column

referenced
without changing the macro.

What I need to do in the macro is select a cell on the same row but within

a
range named column. Say the name for the column is "bank", can someone

give
me the syntax?

Thanks





All times are GMT +1. The time now is 10:32 AM.

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