Results 1 to 8 of 8

Thread: Translating Word VBA into Outlook VBA

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #5
    Hi Graham,

    I have been experimenting with your code, and am getting close to achieving what I am trying to achieve. Thank you for your encouragement. The one aspect I have been unable to figure out is how to select the word that contains the found string within the message body, rather than displaying the word in a message box.

    Acting on the message in variable-space is elegant. I would like to get better at doing this. On the other hand, in this situation, I want to show the user the found word in context, and the most familiar way to do this is to select the word. Thus in my code, I am trying to do equivalent of pressing F8 twice to select the focused word, beginning with (VBA Word) ExtendMode toggled off:

    In Word VBA:

    Selection.Extend
    Selection.Extend
    Last edited by alanc; 11-20-2017 at 10:46 AM.

Posting Permissions

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