+ Reply to Thread
Results 1 to 3 of 3

Clear keyboard buffer

  1. #1
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Clear keyboard buffer

    Is there any way to clear the keyboard buffer in Excel 2003?

    I have a macro that takes a few seconds to execute, and users have a tendency to click another key because they don't think the first click was recognized, so I'd like to have a macro that throws away the extra click.
    Last edited by foxguy; 03-25-2011 at 06:10 PM.
    Foxguy

    Remember to mark your questions [Solved] and rate the answer(s)
    Forum Rules are Here

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258

    Re: Clear keyboard buffer

    Hello foxguy,

    If you want to ignore the users typing or mouse clicks while the macro runs, you can do it this way. Copy this code into a Standard VBA module.
    Please Login or Register  to view this content.

    Your code would look something like this where "MyMacro" is the name of the macro you want to execute.
    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

    Remember To Do the Following....

    1. Use code tags. Place [CODE] before the first line of code and [/CODE] after the last line of code.
    2. Thank those who have helped you by clicking the Star below the post.
    3. Please mark your post [SOLVED] if it has been answered satisfactorily.


    Old Scottish Proverb...
    Luathaid gu deanamh maille! (Rushing causes delays!)

  3. #3
    Forum Expert
    Join Date
    03-31-2009
    Location
    Barstow, Ca
    MS-Off Ver
    Excel 2002 & 2007
    Posts
    2,164

    Re: Clear keyboard buffer

    Thanks Leith

+ 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