I am trying to write a macro that that will close a form (fPointLinks) that displays automatically whenever certain Word documents are opened. I can not change the code in the Word document that contains the VBA form (becasue the document is created by others), so I must create my own macro on the Normal document to close the form. The name of the document with the form will vary each time I receive a new copy. The attached VBA screen shot provides an example of the documents involved.
I tried the below VBA command to close the form but I get an error that says that I am not using a valid object qualifier. What am I missing?
I tried the below VBA command to close the form but I get an error that says that I am not using a valid object qualifier. What am I missing?
Code:
Public Sub ClosePointLinkForm()
fPointLinks.hide
End Sub