Great, that was the bit I was missing.
Set swCustProp = swModel.Extension.CustomPropertyManager("")
Sorry just realised I branched this in the wrong place from this from this thread.
So I edited the macro discuss in a previous topic but I'm finding that it is updating the custom properties of the original and destination files. Is there a way to get it to ignore the original as I want those custom properties to remain after.
I've attached how far I have got so far.
I'm guessing that I either need to:
- deactivate the original file (or close)
- activate the destination file
- Then run the Set2 functions
In this case I guess it is best to put the Set2 functions into a sub routine then call them in the two save as conditions.
I just can't work out how to deactivate the original file to stop it being written to.
Just wondering if this is the the correct approach?
SaveAs (Modified).zip 19.8 KB
Thanks Deepak, this is great!
Been making a few modifications since with varying degrees of success but I guess this is good for learning.
This was a really good start.
Cheers for the help.