+ Reply to Thread
Results 1 to 3 of 3

Lost Focus apply to cell

  1. #1
    John
    Guest

    Lost Focus apply to cell

    Hi Everyone,

    Is it possible to enter some data in a cell and when this cell is not
    active, some macro code runs? How should I start declare the sub or what
    trick to do regarding this cell 's statement during the macro code, in order
    to make this event happen?

    Thanks

    John



  2. #2
    Tom Ogilvy
    Guest

    Re: Lost Focus apply to cell

    Look at Chip Pearson's page on events
    http://www.cpearson.com/excel/events.htm

    Look at the Change and SelectionChange events as possibilities.

    --
    Regards,
    Tom Ogilvy

    "John" <[email protected]> wrote in message
    news:[email protected]...
    > Hi Everyone,
    >
    > Is it possible to enter some data in a cell and when this cell is not
    > active, some macro code runs? How should I start declare the sub or what
    > trick to do regarding this cell 's statement during the macro code, in

    order
    > to make this event happen?
    >
    > Thanks
    >
    > John
    >
    >




  3. #3
    Registered User
    Join Date
    02-26-2005
    Posts
    8
    Implement a global variable to track the current cell that is active. Update it each time the selection changes in the Selection_Change event. You can then fire off code each time a particular cell is modified and take appropriate actions based on which cell it was that just got edited.

+ 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