View Single Post
  #5  
Old 01-19-2016, 08:55 AM
umbongo umbongo is offline
Registered User
 
Join Date: Oct 2015
Posts: 13
Hi,

You can put whatever you want in to a word file via a script; you just need to call the correct VB word commands to manipulate it.

I do exactly the same with excel by grabbing a copy of the configs and putting it in to excel, one column per router.

some example Excel-based commands to get you going in the right direction:
Set objExcel = CreateObject("Excel.Application")
objExcel.Workbooks.Add
objExcel.ActiveSheet.Cells.Font.Size = 10
objExcel.ActiveSheet.Cells.Font.Name = "Calibri"
objExcel.Cells(3, 1).Value = "<" & yourVariable & ">"


It's then just a matter of looking up the correct code for word. This is a good start:
https://msdn.microsoft.com/en-us/lib...ffice.14).aspx
Reply With Quote