Results 1 to 13 of 13

Thread: {Word} Highlight or Underline word while Speaking

Threaded View

  1. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: {Word} Highlight or Underline word while Speaking

    here is some sample to move the selection along the words and underline them
    as the selection moves underlining is bit irrelevant
    this in no way takes account of the speed of the speaking but that should be able to be adjusted to suit
    vb Code:
    1. Do
    2.     Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
    3.     Selection.Range.Font.Underline = True
    4.     t = Timer
    5.     Do Until Timer - t > 2
    6.         DoEvents
    7.     Loop
    8.     Selection.Range.Font.Underline = False
    9.        
    10.     Selection.MoveRight Unit:=wdWord, Count:=1
    11. Loop
    position cursor at beginning of text before running
    Last edited by westconn1; Jan 21st, 2011 at 05:31 AM.
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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