Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
Mac Mac is offline
external usenet poster
 
Posts: 213
Default Catching Ctrl+clicks and getting to the selection

Hello,
when a user changes the area of a selection (via a Ctrl+click), how do I
intercept this event and after that, how do I get to the selection object and
'read' what's in the selected parts (rows)? Thank you!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Catching Ctrl+clicks and getting to the selection

If you're only interested in a single worksheet, you could use the
Worksheet_selectionchange event.

If you want to try, rightclick on the worksheet tab that should have this
behavior. Select view code and past this into the code window:

Option Explicit
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Dim myArea As Range
For Each myArea In Target.Areas
MsgBox myArea.Address(0, 0)
Next myArea
End Sub

I'm not sure what you're doing, so I just did a message box of the address of
each area.


Mac wrote:

Hello,
when a user changes the area of a selection (via a Ctrl+click), how do I
intercept this event and after that, how do I get to the selection object and
'read' what's in the selected parts (rows)? Thank you!


--

Dave Peterson
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
Non-modal dialog tracking Ctrl+click'd selection Mac Excel Programming 4 April 26th 08 09:09 PM
Cancelling Cell Selection using ctrl + click Robin R Excel Discussion (Misc queries) 3 December 2nd 07 12:34 AM
Ctrl-Space Column Selection No Longer Working MPW Excel Discussion (Misc queries) 11 November 22nd 06 06:07 PM
CTRL+SHIFT+END extends selection of cells to last - how reset? LisaH Excel Discussion (Misc queries) 9 July 28th 06 01:36 PM


All times are GMT +1. The time now is 09:39 PM.

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"