+ Reply to Thread
Results 1 to 8 of 8

Keyboard keys are not working after running macro

  1. #1
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Thumbs up Keyboard keys are not working after running macro

    I used keypress code in one of forms, after running following command non of my keyboard is working in excel. when i am restarting excel everything is fine. what could be the reason?

    Please Login or Register  to view this content.
    Thanks
    Last edited by excelliot; 07-24-2014 at 06:13 AM.

  2. #2
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Keyboard keys are not working after running macro

    Any Idea on this?

  3. #3
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Keyboard keys are not working after running macro


    Check some code here for fetching data from list box

  4. #4
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Re: Keyboard keys are not working after running macro

    It is obvious that there is something in code.. that is doing all this..

    Provide the whole code..
    may be we can help you...

    Regards.
    Vikas Gautam

  5. #5
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Keyboard keys are not working after running macro

    code is simple.. which i am using in click event & doing no harm..

    Please Login or Register  to view this content.
    Thanks for reply..

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,480

    Re: Keyboard keys are not working after running macro

    So if you start with a working excel and display the userform and then without pressing Enter you use the form and close it does the issue arise?

    Basically there is nothing in the code or descripton you have provided that should render keyboard inactive. Something else in your project must be occuriring and without see that we are unable to help.
    Cheers
    Andy
    www.andypope.info

  7. #7
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Keyboard keys are not working after running macro

    Quote Originally Posted by Andy Pope View Post
    So if you start with a working excel and display the userform and then without pressing Enter you use the form and close it does the issue arise?
    No it causes issue after i use enter to select item in list box & close list box then after.

    Thanks for reply.

  8. #8
    Forum Contributor
    Join Date
    06-24-2005
    Location
    excelliot.com
    MS-Off Ver
    2007
    Posts
    325

    Re: Keyboard keys are not working after running macro

    error i got while debugging is..

    Runtime error '-2147417848 (80010108)' The object invoked has disconnected from its clients in Excel VBA macro

    this is due to i guess i am trying to close list box from textbox module while item in the list box is selected by pressing enter key..

+ 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. Disable mouse and keyboard while running a macro - mac
    By tartampion in forum Excel General
    Replies: 0
    Last Post: 05-17-2012, 07:56 PM
  2. Disabling Custom Keyboard Keys
    By Drgenetix in forum Excel General
    Replies: 3
    Last Post: 06-05-2011, 05:40 AM
  3. Macro Not Running Via Shortcut Keys
    By ashleyhkim in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-10-2010, 09:50 PM
  4. Keyboard arrow keys
    By Rich in forum Excel General
    Replies: 2
    Last Post: 01-25-2006, 07:10 AM
  5. [SOLVED] How can a macro accept keyboard inputwhile running?
    By WillyNPG in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-10-2005, 09:20 AM

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