Consulting

Results 1 to 2 of 2

Thread: changing selected text in active explorer (or inspector)

  1. #1

    Question changing selected text in active explorer (or inspector)

    I'm working on a MS form that searches an email for numbers of a certain length.
    As the user clicks through the results, I'd like to highlight the current result. (similarly to how the "find" tool highlights your current result in most applications)
    Ideally, I'd like for this to be done from the explorer, but if I need to open the email in an inspector, that's fine too.

    I'm able to access the text that's currently selected using the property

    Outlook.activeExplorer.Selection.Item(1).GetInspector().WordEditor.Application.Selection.Range.Text
    ... , but I don't know how to change the selection to the desired location.

    Does anyone know if this is possible?
    Or will it be necessary for me to copy the email contents somewhere else in order to pull this off?

  2. #2
    I was able to change the selected text (in an inspector) using the selection.start and selection.end properties. I do not believe it's possible to change the selected text in an explorer. (Please let me know if you are aware of a way to do this)

Tags for this Thread

Posting Permissions

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