bitscas.blogg.se

Visual basic script
Visual basic script









Set objWord = CreateObject("Word.Application") Set objWord = CreateObject("Word.Application")ĭemonstration script that retrieves network adapter data from a computer, displays that data in a Microsoft Word document, and then saves the document as C:\Scripts\Word\Testdoc.doc. ObjSelection.EndKey END_OF_STORY, MOVE_SELECTIONĭemonstration script that creates and displays a new Microsoft Word document. Set objDoc = ("c:\scripts\word\testdoc.doc") ObjTable.Cell(x, 2).Range.text = "Display Name"ĭemonstration script that retrieves service information from a computer and then displays that information in tabular format in Microsoft Word.ĭemonstration script that appends the current date to the existing Microsoft Word document C:\Scripts\Word\Testdoc.doc. ObjTable.Cell(x, 1).Range.Text = "Service Name" ObjTable.Cell(x, 3).Range.text = objItem.Stateĭemonstration script that retrieves service data from a computer, displays that data in a table in Microsoft Word, then formats the data by using a predefined Microsoft Word style ObjTable.Cell(x, 2).Range.text = objItem.DisplayName ObjTable.Cell(x, 1).Range.Text = objItem.Name Set colItems = objWMIService.ExecQuery("Select * from Win32_Service") GetObject("winmgmts:\\" & strComputer & "\root\cimv2") ObjSelection.TypeText "Network Adapter Report"ĭemonstration script that retrieves service data from a computer and then displays that data in a formatted table in Microsoft Word. You can use any of the VBScript programs below in ActiveXperts Network Monitor.Ĭlick here for an explanation about how to include scripts in ActiveXperts Network Monitor.ĭemonstration script that displays formatted data in a Microsoft Word document.

visual basic script visual basic script

Microsoft Word Scripts Add Formatted Text to a Word DocumentĪpply a Style to a Table in a Word Documentĭisplay Service Information in a Word Document











Visual basic script