Firstly apologies I'm not very knowledgeable when it comes to macro's etc...
Anyway, I've used the attached macro loads of time in SW2010 to batch add/edit custom properties.
Recently I've upgraded to SW2016 and now it crashes my session when i attempt to run it.
Stepping through shows me that it crashes at this point:
Can anyone explain why and how to fix it?