Contact Info

Crumbtrail » Administration » Scripts » VBScript » Custom script

Add Formatted Text to a Word Document

You can use any of the VBScript programs below in ActiveXperts Network Monitor. Click here for an explanation about how to include scripts in ActiveXperts Network Monitor.


Set objWord = CreateObject("Word.Application")

objWord.Visible = True
Set objDoc = objWord.Documents.Add()
Set objSelection = objWord.Selection

objSelection.Font.Name = "Arial"
objSelection.Font.Size = "18"
objSelection.TypeText "Network Adapter Report"

objSelection.Font.Size = "14"
objSelection.TypeText "" & Date()