This dosn't work with multiple selection

R

rob

Sub ShowSelection()
Dim strText As String
strText = Selection.Text
MsgBox strText
End SubThis just shows the latest selected text.What I have to do to get
multiple selection?
 
J

Jezebel

You can't. Multiple selection seems to have been a bit of a design cludge,
and isn't exposed to VBA.
 
J

Jay Freedman

The official documentation of this is at
http://support.microsoft.com/?kbid=288424. Although the article says
it applies to Word 2002, nothing has changed in this area in Word 2003
or 2007.

--
Regards,
Jay Freedman
Microsoft Word MVP
Email cannot be acknowledged; please post all follow-ups to the
newsgroup so all may benefit.
 
H

Helmut Weber

Hi Rob,

if you really need something like multiselect,
you could use highlighting to programm a workaround,
or any other kind of formatting, that isn't used in
your doc otherwise.

--
Greetings from Bavaria, Germany

Helmut Weber, MVP WordVBA

Win XP, Office 2003
"red.sys" & Chr$(64) & "t-online.de"
 

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