+ Reply to Thread
Results 1 to 2 of 2

KeyDown not working when Userform is loaded from a module

  1. #1
    Registered User
    Join Date
    09-20-2011
    Location
    norway
    MS-Off Ver
    Excel 2003
    Posts
    4

    KeyDown not working when Userform is loaded from a module

    Hi,

    I have created a userform where I have specified keydown for the username and password textbox.
    When I run the test within VBA developer console it works fine. However when im using: userformname.Show to call the userform from a macro, the keydown doesnt work.

    One example of keydown:
    Please Login or Register  to view this content.
    Is there something I need to do in order for the Userform to run the keydown code when it is being called from userform.show in a different vba script?
    Hopefully you are able to understand what I ment..

    Thanks
    Last edited by dordar; 02-25-2014 at 08:13 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: KeyDown not working when Userform is loaded from a module

    Pls Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

+ 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. [SOLVED] Why the VBA Module failed to be loaded automatically?
    By billj in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2013, 07:48 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. [SOLVED] is it possible to make the objects movable on userform when userform is loaded.
    By yeshwant_sur in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-29-2012, 05:14 AM
  4. [SOLVED] Testing to see if Userform is loaded
    By k06 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-24-2012, 01:45 PM
  5. [SOLVED] Copy Data loaded via Userform to a worksheet named in 1 field of the Userform
    By audax48 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-15-2012, 01:44 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