+ Reply to Thread
Results 1 to 3 of 3

Need an event when user types in a cell?

  1. #1
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274

    Need an event when user types in a cell?

    Hello,

    Is there an event that can be fired by excel when only the user starts typing in a cell?

    Not when the user selects a cell or when a user hits enter after he modified the cell's contents ... but merely the moment that he hits any key of any selected cell!

    P.S. Worksheet_Change() and Worksheet_SelectionChange() don't work....

    Thanks for your help

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Need an event when user types in a cell?

    What are you trying to do?

    As soon as a user starts typing in a cell Excel enters edit mode, and code can't be run in edit mode.
    If posting code please use code tags, see here.

  3. #3
    Forum Contributor
    Join Date
    03-07-2013
    Location
    Montreal
    MS-Off Ver
    Excel 2007
    Posts
    274
    Quote Originally Posted by Norie View Post
    What are you trying to do?

    As soon as a user starts typing in a cell Excel enters edit mode, and code can't be run in edit mode.
    Certain code under some buttons need to know that the excel cursor is placed (selectedd) in certain cells in order to allow the
    code to these buttons to run properly.... so therefore I can't lock the cell since I check if it's selected or not.

    Also these same cells must always contain a special character which is
    invisible to the user.... so it can't be changed!!!!

    So in a nutshell, As soon as the user selects the cell.... then that's fine !!! but if he starts typing in it, I need a way to abort the typing by moving
    the excel cursor in another cell and assure that
    the cell is not changed !

    If you have any ideas, please let me know

    thanks for replying!

+ 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. Worksheet_Change Event (If User Mouse Clicks Out of the Active Cell)
    By sadclown in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-14-2012, 03:50 PM
  2. Is it possible to combine 2 User Defined Types?
    By tom.hogan in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-11-2012, 09:08 AM
  3. User-Defined Data Types
    By CrazyFileMaker in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-14-2009, 05:23 AM
  4. Changing user defined variable types
    By Mbrolass in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-12-2007, 11:27 AM
  5. [SOLVED] Checking user defined types for Nothing
    By jayklmno in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-03-2006, 04:25 PM

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