In Consultation Report.dot, I have a subroutine:
Public Sub FaxCopyList2(Optional strFileName As String = "")
I would like to call FaxCopyList2 from another document, Visit Summary.doc:
Application.Run "FaxCopyList2", ActiveDocument.FullName
but I get: "Object doesn't support this property or method."
The subroutine name FaxCopyList2 is unique to Consultation Report.dot and the document opened using Consultation Report.dot will have different names.
MS Word 2003
How do I do this? TIA
Microsoft WordMicrosoft OfficeMicrosoft Applications
I suppose your code is in Module1
Open in new windowRegards