Hi all!
I need to take selection part of topic to userform.
Now i was working just with body of email and the below code works perfect.
Is it possible to take to UF just a selected part of topic? When UF appear (code run) the selection from topic dissapear..
p.s I don't need whole topic - just a selection part
I need to take selection part of topic to userform.
Now i was working just with body of email and the below code works perfect.
Code:
Set msg = Application.ActiveExplorer.Selection(1)
Set WordEditor = msg.GetInspector.WordEditor
Set Selection = WordEditor.Application.Selection
If (Selection.Type = 1) Or (Selection.Type = 0) Or (Selection.Type = 2) Then
SetText = Selection.Text
MsgBox SetText
End If
p.s I don't need whole topic - just a selection part