+ Reply to Thread
Results 1 to 2 of 2

Running a Macro on cell deselect

  1. #1
    Registered User
    Join Date
    04-14-2009
    Location
    Ohio
    MS-Off Ver
    Excel 2003
    Posts
    3

    Running a Macro on cell deselect

    Is there a specific way or VB code that can run a macro when the cell is deselected?

    Im trying to create a historical value within a cell so when someone types in the cell and finishes typing, and the cell is deselected the macro run's and dumps the typed information into another sheet, I need to know how to run it when the cell is deselected

    any idea's?

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Running a Macro on cell deselect

    It's not really de-selection rather it is a Change event
    (the cell only moves (de-selects) because the options on the client are set to do so... you can configure XL to not move cell on pressing Enter)

    If for ex. you wanted to copy A1 when changed to Sheet2 and the next blank row in Column A something like

    Please Login or Register  to view this content.
    To insert the above you would right-click on Sheet1 tab in Native XL, select View Code and insert the above into the resulting window at which point when A1 is altered on Sheet1 Column A on Sheet2 is updated with the latest value (a log of sorts)

    (I've not disabled/enabled the events in the above given in this instance the cell being written to is on a different sheet)

+ 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