PDA

View Full Version : Getting selected text for the reading pane



penfold1992
10-30-2014, 08:37 AM
Hello all,

Is it possible for someone to show how I can get highlighted text from the "preview" or "reading" pane, the message's body?

If i was creating a mail, I could use the following to store my highlighted text:


Dim Sel As Word.Selection
Set Sel = Application.ActiveInspector.WordEditor.Windows(1).Selection

however, this doesnt work when trying to obtain the selected text inside the preview pane.

Is there a way?
Kind Regards,
penfold1992

westconn1
10-31-2014, 04:27 AM
check out this thread, as i am not going to repeat all that was put there
http://www.vbaexpress.com/forum/showthread.php?49530-Copying-selected-text-from-the-Reading-Pane-into-a-variable

post further questions here, with reference to posts within that thread