Z
Zbyszek Pluta
I would like to apply two different word styles to the text inserted from cells(rowno, 3) and cells(rowno, 1). The names of the styles in the template used to populate the information are ProjectStyle, DetailsStyle.
How can I apply word style after inserting new information. I cannot find the syntax which will work.
For rowno = i - 1 To 2 Step -1
With ActiveDocument
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Cells(rowno, 3)
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Cells(rowno, 1)
End With
Next rowno
Thanks for help.
Regards,
Tony
How can I apply word style after inserting new information. I cannot find the syntax which will work.
For rowno = i - 1 To 2 Step -1
With ActiveDocument
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Cells(rowno, 3)
.Bookmarks("OperationsStart").Range.InsertAfter Chr(13)
.Bookmarks("OperationsStart").Range.InsertAfter Cells(rowno, 1)
End With
Next rowno
Thanks for help.
Regards,
Tony