Thread: [Solved] Text Spacing in document
View Single Post
 
Old 03-13-2012, 03:44 PM
gurp99 gurp99 is offline Windows Vista Office 2007
Novice
 
Join Date: Apr 2010
Posts: 18
gurp99 is on a distinguished road
Default

Does this look coorect?

Code:
Private Sub txtEnclosureAttached_Change()
Dim Rng As Range
Set Rng = ActiveDocument.Bookmarks(""bmkEnclosureAttached"").Range
With Rng
  .Text = Replace(Enclosures.Text, vbcr, ", ")
  Application.ScreenRefresh
End With 
ActiveDocument.Bookmarks.Add ""bmkEnclosureAttached"", Rng 
End Sub

Last edited by macropod; 03-13-2012 at 04:57 PM. Reason: Added code tags
Reply With Quote