ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   check for selected columns in a macro (https://www.excelbanter.com/excel-programming/284182-check-selected-columns-macro.html)

philip watson

check for selected columns in a macro
 
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?

Tom Ogilvy

check for selected columns in a macro
 
if selection.Address = selection.Entirecolumn.Address then

--
regards,
Tom Ogilvy

"philip watson" wrote in message
...
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
the result of this test to return Boolean true or false. Any ideas?





All times are GMT +1. The time now is 03:52 PM.

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