Save property to all open parts/assemblies in an assembly?

Hi all:

My name is Chris & I am an engineering student @ Oregon State University & am new to the SW forums .  I am currently working on a project and have made a custom properties program/form via VBA that writes custom properties into SolidWorks.  One issue that I have run into is that I want (need, really) a means to write a piece of data into a custom property of all of the parts and assemblies currently opened.  Specifically, if an engineer has the top assembly open of a particular product, I'm looking for a way to write a "work order number" into the "LastUsed" property of all open child parts/assms.  Perhaps this can be done via one of my VBA macros or functions, or perhaps via another method.  What are you thoughts?  Any tips/tricks would definitely be appreciated!

Thanks!  I apologize if this is posted in the wrong section.  Let me know if you feel it should be moved!

-Chris

SolidworksApi macros