+ Reply to Thread
Results 1 to 3 of 3

Stop the Loop while Speech

  1. #1
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Question Stop the Loop while Speech

    Hi Dear Experts

    I am using Application.Speech.Speak in a ListView
    The code speaks every row perfectly. But I want when I stop it, it should stop at that spot.
    Please Login or Register  to view this content.
    When I press F9 it started play every row. But when I press F10 it does not stop the speech.

    Dear experts please help me regarding this issue.

    I shall be very thankful to you.
    Don't wait for the PERFECT MOMENT
    take the moment and make it PERFECT
    Amir

  2. #2
    Forum Expert CK76's Avatar
    Join Date
    06-16-2015
    Location
    ONT, Canada
    MS-Off Ver
    MS365 Apps for enterprise
    Posts
    5,885

    Re: Stop the Loop while Speech

    It's not so easy to trap Keydown event within loop.

    Just use "ESC" key to terminate. By enabling EnableCancelKey

    Something like...
    Please Login or Register  to view this content.
    ?Progress isn't made by early risers. It's made by lazy men trying to find easier ways to do something.?
    ― Robert A. Heinlein

  3. #3
    Forum Contributor
    Join Date
    09-18-2014
    Location
    Pakistan
    MS-Off Ver
    2013, 2016
    Posts
    283

    Re: Stop the Loop while Speech

    Dear CK76

    I am very thankful to you. You are really genius. Thanks a Lot. It works for me.

+ 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. Stop a Loop
    By ExcelRose in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-03-2017, 04:12 PM
  2. Replies: 1
    Last Post: 03-16-2016, 11:09 AM
  3. How to Stop a Do While Loop at a certain row??
    By jtemp57 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-27-2014, 09:53 AM
  4. Loop Does Not Stop
    By ryanmorris in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-14-2011, 07:31 PM
  5. How to stop the for loop?
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-25-2008, 07:33 AM
  6. Loop until won't stop!?
    By meacho in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-27-2007, 03:37 PM
  7. Hot key to stop a LOOP
    By joopdog in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-09-2006, 02:51 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