O
Outatym
I have a userform that opens on Document A. Depending on which button on it
the user selects, it will either open up Document B or Document C. Both of
these documents also have userforms that fire when the documents are opened.
Private Sub CmdCommRun_Click()
OpenForm.Hide
Documents.Open FileName:="T:\Proposal\DocumentB.doc"
End Sub
and
Private Sub CmdTrkgRun_Click()
OpenForm.Hide
Documents.Open FileName:="T:\Proposal\DocumentC.doc"
End Sub
This works fine, the problem I am having is that I need to close Document A
AFTER the other document has already opened.
I can't seem to get the ActiveDocument property to work right.
What code would be needed? Would it be on the DOC B & C's userform's
initialize or activate properties? Would I need to set up global variables
and test for them?
Any help would be appreciated.
the user selects, it will either open up Document B or Document C. Both of
these documents also have userforms that fire when the documents are opened.
Private Sub CmdCommRun_Click()
OpenForm.Hide
Documents.Open FileName:="T:\Proposal\DocumentB.doc"
End Sub
and
Private Sub CmdTrkgRun_Click()
OpenForm.Hide
Documents.Open FileName:="T:\Proposal\DocumentC.doc"
End Sub
This works fine, the problem I am having is that I need to close Document A
AFTER the other document has already opened.
I can't seem to get the ActiveDocument property to work right.
What code would be needed? Would it be on the DOC B & C's userform's
initialize or activate properties? Would I need to set up global variables
and test for them?
Any help would be appreciated.