I learned VB in school, but I don't know much about VBA. I've been using this site for reference.
I've been trying to use this loop.
Dim lBaseTotal As Long lBaseTotal = ActiveDocument.Characters.Count - 1 ' Create one paragraph of text Selection.HomeKey Unit:=wdStory For n = 1 To lBaseTotal Step 1 Selection.MoveRight Unit:=wdCharacter, Count:=1, Extend:=wdExtend If (Selection.Text == "^p") Then Selection.Delete Unit:=wdCharacter, Count:=1 End If Selection.MoveRight Unit:=wdCharacter, Count:=1 Next nThe problem is with the if statement, as VBA won't let me use '=='.
I also tried using find in a loop to the end of the document, but that just gets stuck on the last character. ^^;; Since it is a paragraph return.
Any suggestions? Thanks in advance.
---
Edit: Figured out a different loop. ^_^
Edited by getdigitalz, 12 August 2005 - 10:31 AM.