Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,090
Default 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?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default 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?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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?




  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
macro to find cell content in sheets and make sheet active Nigel Excel Discussion (Misc queries) 4 June 26th 14 02:38 PM
Find last cell in a column, Delete its contents and make it active George Excel Worksheet Functions 5 January 28th 10 05:38 PM
Find address of active cell Dave Excel Worksheet Functions 5 September 6th 06 06:43 PM
Macro to find the first cell in a column with different data Lost in Alabama Excel Discussion (Misc queries) 2 December 14th 05 06:39 PM
Find active cell Thomas[_13_] Excel Programming 5 February 18th 04 04:34 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"