Results 1 to 6 of 6

Thread: [RESOLVED] Excel HOW to Pause and wait for Keystoke

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    382

    Resolved [RESOLVED] Excel HOW to Pause and wait for Keystoke

    Can someone please tell me if it is possible to write an Excel macro that will pause at a certain place and wait until the user does a keystroke at which time the macro will resume execution? I do not want to use inputbox or msgbox. Thanks.

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Excel HOW to Pause and wait for Keystoke

    Excel VBA question moved to Office Development.

  3. #3
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628

    Re: Excel HOW to Pause and wait for Keystoke

    Um, yes and no. No in the sense it isn't an option you can select in the dropdown list in the macro builder. And yes in the sense that you can program it in a module within Access and then set a Macro to run that section of code.

    But, you will need to use Windows API to watch for keystrokes and when it receives one to continue. Don't think their is anything prebuilt in Office VBA for this.

  4. #4

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    382

    Re: Excel HOW to Pause and wait for Keystoke (Resolved)

    Thanks, but I'm not using Access. I want to write a macro that loops through some code and displays some data; but I want the user to be able to suspend the looping with a keystroke or a mouse click, and then resume looping with another keystroke or mouse click.
    Last edited by doasidont; Dec 8th, 2005 at 04:43 PM.

  5. #5

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2002
    Posts
    382

    Re: Excel HOW to Pause and wait for Keystoke

    How do you mark an item as 'resolved'?

  6. #6
    Addicted Member malik641's Avatar
    Join Date
    Sep 2005
    Location
    South Florida :-)
    Posts
    221

    Re: Excel HOW to Pause and wait for Keystoke

    Quote Originally Posted by doasidont
    How do you mark an item as 'resolved'?
    When you are viewing this thread...under "Thread Tools"




    If you find any of my posts of good help, please rate it

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width