View Single Post
 
Old 04-20-2017, 08:40 PM
Tye30 Tye30 is offline Windows 7 32bit Office 2010 32bit
Novice
 
Join Date: Apr 2017
Posts: 7
Tye30 is on a distinguished road
Default

Ha ha...Yeah, I got a little excited and was already starting to incorporate your code into my other macros and I ended up posting the wrong one. Thank you again macropod, I am new to VBA so I appreciate you helping me!


Code:
 
Sub LINE_REVISE()
'
'
Dim StrTmp As String
With Selection
  .Start = .Paragraphs.First.Range.Start
  .End = .Paragraphs.First.Range.End - 1
  StrTmp = Trim(Replace(Replace(.Text, "|Z| ", "ZR"), "|", ""))
  .Text = StrTmp
End With
    Selection.MoveDown Unit:=wdLine, Count:=1
    Selection.HomeKey Unit:=wdLine
End Sub
Reply With Quote