Guest_imported
New member
- Jan 1, 1970
- 0
Hi people,
Nedd help with some stuff. I am trying to get my VB program to generate a microsoft winword report with some formatting like bold, underlining, etc.
However, it seems that once I unbold something, the whole document gets unbold, the same goes for the different type s of formatting.
With oWord
.ActiveDocument.Range.InsertParagraph
.ActiveDocument.Range.Font.Bold = True
.ActiveDocument.Range.InsertAfter "This line is bold, very bold"
.ActiveDocument.Range.InsertParagraphAfter
.ActiveDocument.Range.Font.Bold = False
.ActiveDocument.Range.InsertAfter "This line isn't bold, isn't very bold"
End With
Thanks in Advance.
Brendon
Nedd help with some stuff. I am trying to get my VB program to generate a microsoft winword report with some formatting like bold, underlining, etc.
However, it seems that once I unbold something, the whole document gets unbold, the same goes for the different type s of formatting.
With oWord
.ActiveDocument.Range.InsertParagraph
.ActiveDocument.Range.Font.Bold = True
.ActiveDocument.Range.InsertAfter "This line is bold, very bold"
.ActiveDocument.Range.InsertParagraphAfter
.ActiveDocument.Range.Font.Bold = False
.ActiveDocument.Range.InsertAfter "This line isn't bold, isn't very bold"
End With
Thanks in Advance.
Brendon