ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how do find out the column of the active cell in a macro? (https://www.excelbanter.com/excel-programming/327841-how-do-find-out-column-active-cell-macro.html)

Neill Lee

how do find out the column of the active cell in a macro?
 
I want to find out the column of the presently active cell in a macro in
excel. I want to do this so the macro can test to see if the present cell is
in a particular column. Can anybody help?

Otto Moehrbach

how do find out the column of the active cell in a macro?
 
One way:
TheCol = ActiveCell.Column
"Neill Lee" <Neill wrote in message
...
I want to find out the column of the presently active cell in a macro in
excel. I want to do this so the macro can test to see if the present cell
is
in a particular column. Can anybody help?




Jim Thomlinson[_3_]

how do find out the column of the active cell in a macro?
 
HTH

MsgBox ActiveCell.Column

"Neill Lee" wrote:

I want to find out the column of the presently active cell in a macro in
excel. I want to do this so the macro can test to see if the present cell is
in a particular column. Can anybody help?


Neill Lee[_2_]

how do find out the column of the active cell in a macro?
 
Thank You! It works!!!

"Otto Moehrbach" wrote:

One way:
TheCol = ActiveCell.Column
"Neill Lee" <Neill wrote in message
...
I want to find out the column of the presently active cell in a macro in
excel. I want to do this so the macro can test to see if the present cell
is
in a particular column. Can anybody help?





Neill Lee[_2_]

how do find out the column of the active cell in a macro?
 
Thank You! It works!!!

"Jim Thomlinson" wrote:

HTH

MsgBox ActiveCell.Column

"Neill Lee" wrote:

I want to find out the column of the presently active cell in a macro in
excel. I want to do this so the macro can test to see if the present cell is
in a particular column. Can anybody help?



All times are GMT +1. The time now is 02:03 AM.

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