View Single Post
 
Old 07-20-2011, 02:15 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,343
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi Peter,

In that case, I doubt you have anything selected. You can prevent the error by adding:
If Len(Rng.Text) = 0 Then Exit Sub
after:
Set Rng = Selection.Range
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote