libOffice (Word & Outlook Interaction)

This file containts functions to talk to MS Word and MS Outlook

Summary
This file containts functions to talk to MS Word and MS Outlook
This function returns a MS Word application object.
Opens Word (if it isn’t open), then creates and returns a new Word document.
This function returns a MS Outlook application object.
Opens Outlook and returns all contacts with the given first and last name

Functions

getWord() As Object

Public Function getWord() As Object

This function returns a MS Word application object.  Even if called multiple times, it will open only one instance of MS Word and return that application in every call.

createWordDocument(Optional template As String) As Object

Public Function createWordDocument(Optional template As String) As Object

Opens Word (if it isn’t open), then creates and returns a new Word document.  Optionally, a template file can be given.

getOutlook() As Object

Public Function getOutlook() As Object

This function returns a MS Outlook application object.  If called multiple times, it will open only one instance of MS Outlook and return that application in every call.

findContactsInOutlook(firstname As String, lastname As String) As Collection

Public Function findContactsInOutlook(firstname As String,
lastname As String) As Collection

Opens Outlook and returns all contacts with the given first and last name

Public Function getWord() As Object
This function returns a MS Word application object.
Public Function createWordDocument(Optional template As String) As Object
Opens Word (if it isn’t open), then creates and returns a new Word document.
Public Function getOutlook() As Object
This function returns a MS Outlook application object.
Public Function findContactsInOutlook(firstname As String,
lastname As String) As Collection
Opens Outlook and returns all contacts with the given first and last name