I using VBScript to launch Microsoft Word and write text to it. I have been able to change font properties (size, fontname, bold...) for the entire document and also for single words.
Set Word = CreateObject("word.application")
set doc = word.documents.add
doc.content.Font.Name = "Arial"
doc.Words(1).Font.Bold = True
What I want to do is change the font for a whole line or a whole paragraph but I have been unable to find any syntax that will accomplish this.
Also when you close the file that has been created is there any way to suppress or bypass the save as dialog? What is the command to exit word? Help is very much appreciated
Set Word = CreateObject("word.application")
set doc = word.documents.add
doc.content.Font.Name = "Arial"
doc.Words(1).Font.Bold = True
What I want to do is change the font for a whole line or a whole paragraph but I have been unable to find any syntax that will accomplish this.
Also when you close the file that has been created is there any way to suppress or bypass the save as dialog? What is the command to exit word? Help is very much appreciated