Sorry about this not being the correct forum but can anyone lead me to a VBA foum simular to this one
Printable View
Sorry about this not being the correct forum but can anyone lead me to a VBA foum simular to this one
Moved :)
did you have a particular question?
Yes Rob I do have a question if you could possibly help. Having legitimately copied and downloaded large bodies of text and opened with Word 2003 many addition line end have been returned (paragraph marks are in place). I have been trying to create a macro to find these paragraph marks delete them and add a space.
The problem is I can’t find any reference to paragraph marks to allow me to search for them.
In Word A paragraph is Ended by vbreturn (Yes every time you use enter in word you make a new paragraph)
and the new one start with the first character after de carriage return.
to access all paragraphs as one text you can use .content
if you would do something like this (written on the fly)
all paragraphs would be fuse to oneCode:Dim MainStory As Range
Set MainStory = ActiveDocument.Content
With MainStory.Find
.Text = Chr$(14)
.ClearFormatting
.Replacement.Text = Chr$(20)
.Replacement.ClearFormatting
.Execute Replace:=wdReplaceOne, Forward:=True
End With