ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Column References in Macros (https://www.excelbanter.com/excel-discussion-misc-queries/108491-column-references-macros.html)

Brendan Vassallo

Column References in Macros
 
I am writing a Macro and want to referecne a column by using its A1 reference
(ie Column A etc) instead of its R1C1 reference.

I am using the activecell.column funtion at the moment. Is there any way to
get this to retun the A1 column reference?

Brendan

Harald Staff

Column References in Macros
 
Hi Brendan

Sub test()
MsgBox ActiveCell.EntireColumn.Address(False, False, xlA1)
End Sub

HTH. Best wishes Harald

"Brendan Vassallo" skrev i
melding ...
I am writing a Macro and want to referecne a column by using its A1
reference
(ie Column A etc) instead of its R1C1 reference.

I am using the activecell.column funtion at the moment. Is there any way
to
get this to retun the A1 column reference?

Brendan




Brendan Vassallo

Column References in Macros
 
Thanks heaps Harald!!!!

"Harald Staff" wrote:

Hi Brendan

Sub test()
MsgBox ActiveCell.EntireColumn.Address(False, False, xlA1)
End Sub

HTH. Best wishes Harald

"Brendan Vassallo" skrev i
melding ...
I am writing a Macro and want to referecne a column by using its A1
reference
(ie Column A etc) instead of its R1C1 reference.

I am using the activecell.column funtion at the moment. Is there any way
to
get this to retun the A1 column reference?

Brendan






All times are GMT +1. The time now is 05:13 AM.

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