it's rather big thing for me to just pull it out of my head here, but...
you would connect to word via createobject("microsoft.word")
that way you can control word in normal script.

what the commands/functions you need are descriped in words vbscripting part of manual.

or even open a word, do a macro that does the job and then just translate it to kix (the board can help in that)...

the macro path is easier that it does not require many hours of searching.
_________________________
!

download KiXnet