G
Gerald Perna
I need to insert the name of the paragraph style in front
of the text that is in the cells of all the tables in a
document.
This is how I did it for the regular text in a document:
Dim ParSty As String
ParSty = Selection.Paragraphs(1).Style
Selection.Range.InsertBefore "{" & ParSty & "}"
Do Until Selection.Paragraphs(1).Style = "END"
Selection.MoveDown Unit:=wdParagraph, Count:=1
ParSty = Selection.Paragraphs(1).Style
Selection.Range.InsertBefore "{" & ParSty & "}"
Loop
It works fine, but I'm not sure how to do the same thing
for tables. Can anyone help me?
Thanks.
Jerry
of the text that is in the cells of all the tables in a
document.
This is how I did it for the regular text in a document:
Dim ParSty As String
ParSty = Selection.Paragraphs(1).Style
Selection.Range.InsertBefore "{" & ParSty & "}"
Do Until Selection.Paragraphs(1).Style = "END"
Selection.MoveDown Unit:=wdParagraph, Count:=1
ParSty = Selection.Paragraphs(1).Style
Selection.Range.InsertBefore "{" & ParSty & "}"
Loop
It works fine, but I'm not sure how to do the same thing
for tables. Can anyone help me?
Thanks.
Jerry