Setting MS Word Properties in VB6

@repzkoopz (1895)
Philippines
November 17, 2007 11:15am CST
does anybody know how to set properties like fonts in MS Word via VB6? i'm creating a report which uses Word for printing purposes, and i can't seem to be able to set fonts properly.
1 response
@ferdzNK (3211)
• Philippines
5 Apr 08
Greetings repzkoopz! I was able to do it though with in MS excel macro way way back, the commands are all there in excel help file. I just wasn't able to tried it from within VB. That is why I'm curious, how did you did it(tinker word from VB)?
@repzkoopz (1895)
• Philippines
24 Aug 08
hey there ferdzNK! c",) sorry, i didn't notice someone else actually responded here. anyway, i managed to find some codes i'll need to set proper formatting to the report i was making.. i used codes like these: --------------------- Set oRange = oDoc.Bookmarks("\EndOfDoc").Range oRange.Text = oRange.Text & Format(Now, "mm/dd/yyyy") & vbCrLf & vbCrLf oRange.Font.Name = "Arial" oRange.Bold = True oRange.ParagraphFormat.Alignment = wdAlignParagraphRight ---------------------