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



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
VBA how to check if entire row is selected? Jack Sons Excel Discussion (Misc queries) 6 April 23rd 23 09:00 PM
Multiple cells or columns are selected instead of selected cell or Mikey Excel Discussion (Misc queries) 1 April 29th 09 09:48 PM
Printing selected columns Dave Excel Discussion (Misc queries) 2 February 9th 07 07:05 PM
excel check boxes moving when excel selected cells pasted in word Erik Excel Discussion (Misc queries) 0 July 7th 06 05:00 PM
Columns Selected Steven M. Britton Excel Discussion (Misc queries) 0 June 15th 05 03:52 PM


All times are GMT +1. The time now is 10:25 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"