+ Reply to Thread
Results 1 to 3 of 3

beep from keyPress

  1. #1
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    beep from keyPress

    Howdy:

    I've got a small - almost "cosmetic" problem. I have a listBox on a userForm and I'm checking for a keystroke combination to see if the user wants to edit related data. That's working fine. However, when I return to the userForm, it beeps at me. Impertinent! I think it's because Excel doesn't know what to do with the keyStroke that I used - Alt U. I've attached code. I think that I just have to set the keycode to something that will be ignored by Excel.

    Any ideas?

    Bob

    Please Login or Register  to view this content.
    Last edited by bstubbs; 09-14-2009 at 06:31 AM.

  2. #2
    Registered User
    Join Date
    09-06-2009
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    30

    Re: beep from keyPress

    I'm not 100% sure this will work in your case, but try setting the KeyAscii value to 0 before you call your subroutine. Something like:

    Please Login or Register  to view this content.
    No guarantees it works, but googling for "Excel KeyPress beeping" produces a bunch of forums with similar queries:

    http://www.codeguru.com/forum/showthread.php?t=7667 is one that looks like it may be a similar issue.

    Hope this helps.

  3. #3
    Forum Contributor
    Join Date
    01-09-2009
    Location
    Cedar Hill, Tx
    MS-Off Ver
    Excel 2003
    Posts
    200

    Re: beep from keyPress

    Yep, worked like a champ!

    Thanks.

    Bob

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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