I
ian
I have used help to solve this but now i am stuck.
I want to be able to scan a large document which has
tables.
In some of the table's cells are paragraphs I want to
select. These paragraphs have a bullet at the start and
other various properties such as font etc.
I am only searching for the bulletted ones. hence not
bothered by fonts, bold, italics etc.
I went to help learnt to how make a style and edit it from
the format>style... menu.
but it still wont locate the paragraphs, just the one I
made the style from...
It seems to have changed the properties of the paragraph
when I gave it a style name.
I recorded my attempt and tried to edit it from VBA but
just asking to search the style with
Selection.Find.ClearFormatting
Selection.Find.Style = ActiveDocument.Styles("ABullet")
Selection.Find.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
and further removed all in the with..end with but no luck.
Once again im just trying to locate bullet paragraphs from
VBA hope you can help.
Ian
I want to be able to scan a large document which has
tables.
In some of the table's cells are paragraphs I want to
select. These paragraphs have a bullet at the start and
other various properties such as font etc.
I am only searching for the bulletted ones. hence not
bothered by fonts, bold, italics etc.
I went to help learnt to how make a style and edit it from
the format>style... menu.
but it still wont locate the paragraphs, just the one I
made the style from...
It seems to have changed the properties of the paragraph
when I gave it a style name.
I recorded my attempt and tried to edit it from VBA but
just asking to search the style with
Selection.Find.ClearFormatting
Selection.Find.Style = ActiveDocument.Styles("ABullet")
Selection.Find.ParagraphFormat.Borders.Shadow = False
With Selection.Find
.Text = ""
.Replacement.Text = ""
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
End With
Selection.Find.Execute
and further removed all in the with..end with but no luck.
Once again im just trying to locate bullet paragraphs from
VBA hope you can help.
Ian