+ Reply to Thread
Results 1 to 3 of 3

Identify code invoked on cell exit / enter - Finde Invoked Code on Cell Exit

  1. #1
    Registered User
    Join Date
    06-11-2013
    Location
    Toronto
    MS-Off Ver
    2013
    Posts
    25

    Identify code invoked on cell exit / enter - Finde Invoked Code on Cell Exit

    Good day,

    I am trying to identify the code invoked once I exit a cell.

    I choose a "Resource Code", hit Enter (active cell moves down) and information relevant to the "Resource Code" appears in columns adjacent to the cell where I started the operation.

    This wkb has so much code - trying to locate the "invoked" code is challenging.

    Many Thanks

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Identify code invoked on cell exit / enter - Finde Invoked Code on Cell Exit

    has so much code - trying to locate
    This post has so little code trying to locate the "invoked" code is challenging but if it's not a formula in the adjacent then it's probably the Worksheet_Change event in the worksheet code/class module.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Identify code invoked on cell exit / enter - Finde Invoked Code on Cell Exit

    Right click on your sheet name at the bottom of excel and select view code

    A macro module will open

    At the top left there will be a dropdown box. Select "Worksheet"

    At the top left there will be a dropdown box Select "Selection Change"

    This is the macro module that will run when you select a new cell.

    There is another option on the same module for "Worksheet Activate"

    So if you declare a public variable to save the active cell address when you activate the sheet then you
    will have access to the active cell address and to the previous activecell address.

    Please Login or Register  to view this content.
    Last edited by mehmetcik; 04-18-2017 at 05:22 PM.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. VBA code to reset filters to all on exit
    By karenowens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-14-2016, 12:58 PM
  2. Execute code on exit
    By Flipflash in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-21-2014, 05:40 PM
  3. Trim code to exit code if cell is empty
    By excellenthelp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-23-2013, 12:08 PM
  4. VBA code to exit workbook with a Pop-up message
    By ravi.talalur in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-13-2013, 03:05 PM
  5. Code to Exit a Macro
    By AccountantCost in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2009, 02:06 PM
  6. [SOLVED] Code to Exit Excel
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-16-2006, 08:25 PM
  7. Can't move from one cell and/or enter any data, or exit wksht...
    By Stuck in One cell in forum Excel General
    Replies: 2
    Last Post: 03-28-2005, 02:06 AM

Tags for this Thread

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