Varible - Number of column

  • Thread starter Thread starter gatarossi
  • Start date Start date
G

gatarossi

Dear all,

I need to create a variable to return the number of the column that
the active cell is selected, for example: if the cell selected is in
column B, the number returned by variable is two; if the cell selected
is in column E, the number returned by variable is 5.

Thanks a lot!!!

André.
 
msgbox activecell.column

--
Don Guillett
Microsoft MVP Excel
SalesAid Software
(e-mail address removed)
Dear all,

I need to create a variable to return the number of the column that
the active cell is selected, for example: if the cell selected is in
column B, the number returned by variable is two; if the cell selected
is in column E, the number returned by variable is 5.

Thanks a lot!!!

André.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top