PDA

View Full Version : [SOLVED:] changing selected text in active explorer (or inspector)



MaxBonzulak
10-16-2019, 12:58 PM
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.Applicat ion.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?

MaxBonzulak
10-17-2019, 11:37 AM
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)