one macro has 'Option Explicit' which is definitely better.
add this to sub main
Dim vCustPropNames As Variant
Dim i As Integer
Dim vCustPropnames As Variant is already in the Pack and Go Experimental file.
Dim i As Long is already in the Pack and Go Experimental file.
However, they are not in the Find Revision Letter macro.
Find Revision Letter Macro:
If I add "Option Explicit" to Find Revision Letter, I get a "Variable Not Defined" error. When I make the declarations you suggested, it works again.
Pack and Go Experimental
This macro gets stuck on the "Set swCustPropMgr = swModel.Extension.CustomPropertyManager("")" line when it is set up like the Find Revision Letter macro above. Why does it do this?
Unselecting "SOLIDWORKS Utilities 2015 Type Library" doesn't do anything for the Pack and Go Experimental macro.
Pack and Go Experimental References:
Find Revision Letter References:
remove this Dim swModel As SldWorks.ModelDoc2
and replace Set swCustPropMgr = swModel.Extension.CustomPropertyManager("") with
Set swCustPropMgr = swModelDocExt.CustomPropertyManager("")
It works like I intended it to. Thank you!
Why did I need to remove that one declaration and replace the swModel.Extension command with the swModelDocExt command?
because you had swModelDocExt defined before. Otherwise you would introduce unnecessary new variable.