Hi PAT44,
When you open an assembly it automatically opens all of the files in that assembly. If you want to run code on every part in the assembly then you would do something like this:
Dim swApp As SldWorks.SldWorks
Dim swModel As SldWorks.ModelDoc2
Dim swAssy As SldWorks.AssemblyDoc
Dim...