Results 1 to 3 of 3

keydown in userform

Threaded View

  1. #1
    Forum Contributor
    Join Date
    07-14-2019
    Location
    Dubai
    MS-Off Ver
    2019
    Posts
    927

    keydown in userform

    Hi

    within this code
    Private Sub ComboBox1_KeyDown(ByVal KeyCode As MSForms.ReturnInteger, ByVal Shift As Integer)
        If KeyCode = 49 Then
        CommandButton1_Click
        End If
    End Sub
    it can be running everywhere in the userform1 content?
    or I must repeat it for every textbox and buttons?
    Last edited by Undo; 10-11-2021 at 07:13 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. KeyDown not working when Userform is loaded from a module
    By dordar in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2014, 07:56 AM
  2. Userform Combobox behavior on Keydown
    By bishope in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-12-2013, 03:24 PM
  3. Event keypress, tab or keydown and Setfocus
    By antoni in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-26-2009, 10:55 PM
  4. Keydown rather then range
    By sgoldbe2 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-12-2008, 02:50 PM
  5. [SOLVED] Can I detect a KEYDOWN event while in a worksheet
    By Ken Soenen in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-14-2005, 09:20 PM
  6. Keydown and SelStart problem
    By jase in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-06-2005, 09:50 AM
  7. Change date with KeyDown
    By John Pierce in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2005, 10:40 AM
  8. [SOLVED] keydown event
    By bfa in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-18-2005, 10:06 AM

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