WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

OLE with Word

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Change Font of Entire Doc File


wdFilename = "C:\Temp\new.doc"
objApp = ObjectCreate("Word.Application")
objDocs = objApp.documents
objApp.visible = @true
objDocs.Open( :: FileName = wdFilename)

objSelection = objApp.Selection
objSelection.wholestory
objFont = objSelection.Font 
objFont.Name = "Verdana"

objFont = 0
objSelection= 0
objDocs= 0
objApp= 0

Article ID:   W16140
File Created: 2010:07:29:10:42:04
Last Updated: 2010:07:29:10:42:04