check for selected columns in a macro

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello Excel Expert

I wish to know how to write one or several lines of macro code that will test to see if any entire colum
in a range of columns has been selected by the user of the macro before the macro is run. I would lik
the result of this test to return Boolean true or false. Any ideas?
 
if selection.Address = selection.Entirecolumn.Address then

--
regards,
Tom Ogilvy

philip watson said:
Hello Excel Expert,

I wish to know how to write one or several lines of macro code that will
test to see if any entire column
in a range of columns has been selected by the user of the macro before
the macro is run. I would like
 

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