View Single Post
 
Old 02-05-2012, 04:45 AM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,374
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 Jana,

Replace:
Code:
                'StrTxt = StrTxt & Left(oPara.Range.Text, Len(oPara.Range.Text) - 1) & ", "
with:
Code:
                StrTxt = StrTxt & Left(oPara.Range.Text, Len(oPara.Range.Text) - 1)
                While Right(StrTxt, 1) = "."
                  StrTxt = Left(StrTxt, Len(StrTxt) - 1)
                Wend
                StrTxt = StrTxt & ", "
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote