G
Greg Maxey
Hi,
A little while ago I was trying to figure out how to hyperlink to another
document while closing and saving changes to the document containing the
hyperlink. My solution was an AutoOpen() macro in the destination document
containing the following code.
AutoOpen()
End Sub
This worked fine whenever I was hyperlinking to this document from the
Reports.doc however if I just tried to open the document I was getting an
error because Reports.doc wasn't open.
I need to to alter my AutoOpen macro such the it functions like
If Report.doc is Open Then
Documents("Report.doc").Close SaveChanges:=wdSaveChanges
Else End
I don't have a clue how this would be done.
Thanks.
A little while ago I was trying to figure out how to hyperlink to another
document while closing and saving changes to the document containing the
hyperlink. My solution was an AutoOpen() macro in the destination document
containing the following code.
AutoOpen()
End Sub
This worked fine whenever I was hyperlinking to this document from the
Reports.doc however if I just tried to open the document I was getting an
error because Reports.doc wasn't open.
I need to to alter my AutoOpen macro such the it functions like
If Report.doc is Open Then
Documents("Report.doc").Close SaveChanges:=wdSaveChanges
Else End
I don't have a clue how this would be done.
Thanks.