Set myRange to selected text???

E

Ed

I want to set the text I've selected as a Range (myRange) to work in. I've
tried:
myRange = Selection
myRange = Selection.Range
Set myRange = ActiveDocument.Selection

What am I missing???

Ed
 
J

JGM

hi Ed,
Have you tried:
'_______________________________________
Dim MyRange As Range

Set MyRange = Selection.Range

MsgBox MyRange.Text
'_______________________________________

HTH
Cheers!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top