Bill,
there is a very easy way you can make microsoft office teach you what is what, in terms of coding a visual basic operation inside the software suite. record a macro in your target app and copy the code directly into your source app. usually you don't have to replace many of the qualifying statements (e.g. - the object in the code) other than those that are directly related to the target application on the top level. for instance, in the case of word, a document object or the app object itself.
below is PSEUDO code (probably not perfectly correct) that shows how to do this. ask word to tell you how to code a basic app...opening a new template:
Code:
Documents.Open FileName:="Doc2.dotx", ConfirmConversions:=False, ReadOnly _
:=False, AddToRecentFiles:=False, PasswordDocument:="", PasswordTemplate _
:="", Revert:=False, WritePasswordDocument:="", WritePasswordTemplate:="" _
, Format:=wdOpenFormatAuto, XMLTransform:=""
so in your source app, other than creating the instance of the target app and replacing the qualifiers, things should stay exactly the same:
Code:
Dim wd As Object
Dim wt As Word.Document
Set wd = CreateObject("word.application")
wd.Visible = True
Set wt = wd.Documents.Open(Filename:="path")
More than likely, as in this example, almost all of the code written by the target app itself could be duplicated by the source app just by adding the prefix wd. to it.