Click to See Complete Forum and Search --> : Has anyone got Kowledge of Word VBA
David Fenton
May 15th, 2006, 12:40 PM
Sorry about this not being the correct forum but can anyone lead me to a VBA foum simular to this one
RobDog888
May 15th, 2006, 12:50 PM
Moved :)
did you have a particular question?
David Fenton
May 16th, 2006, 09:34 AM
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.
Dnereb
May 16th, 2006, 10:00 AM
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)
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
all paragraphs would be fuse to one
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.