09-14-2020
07:58 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
09-14-2020
07:58 PM
Besides referencing to document to call the method as @imajar mentioned, there is some common syntax tricks in VBA that it supports calling a method in either of the ways, take Document.SaveAs as example:
1.With parenthesis: Call Document.SaveAs(Param1, Param2)
2. With paraenthesis: Document.SaveAs Param1, Param2
Code example:
Dim oDoc As AssemblyDocument
Set oDoc = ThisApplication.ActiveDocument
oDoc.SaveAs "c:\temp\aa.iam", False

Jane Fan
Inventor QA Engineer