+ Reply to Thread
Results 1 to 3 of 3

Excel 2007 : Auto detect cell selection

  1. #1
    Registered User
    Join Date
    12-20-2008
    Location
    Arkansas
    MS-Off Ver
    2010
    Posts
    87

    Auto detect cell selection

    Hi everyone,

    I'm trying to detect when a cell is selected. If cell A1 is selected and the user selects cell B5 (just a simple mouse click) but doesn't enter anything, can I detect that B5 was selected?

    Thanks.

  2. #2
    Forum Contributor
    Join Date
    09-21-2009
    Location
    Belgium - Mechelen
    MS-Off Ver
    Office 365 - version 2310
    Posts
    278

    Re: Auto detect cell selection

    Hi,
    You could use VBA code on the Worksheet SelectionChange event.
    Copy this simple code in the VBA editor in sheet 1 ; and then click a cell.
    Msgbox will appear with the selected cell's address.


    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-20-2008
    Location
    Arkansas
    MS-Off Ver
    2010
    Posts
    87

    Smile SOLVED: Auto detect cell selection

    Thanks, That works great. I was under the misconception that the contents of the cell had to be changed before this would work.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1