Hi,
I have been using a VBA macro to publish a DWF including all positional representations for a while now.
But there is a error and I do not know how to prevent the macro from crashing.
I've used the code from this post
The problem is that when a positional representation fails, the publish of the DWF also fails.
The macro then stops at ".SaveCopyAs".
Also, "On Error ..." does not work in this line.
The pos reps are added to the publish options but the publish itself fails.
What I think is that when the DWF is generated and a pos rep is corrupted, the DWF generation will fail.
But how do I prevent publishing failing pos reps?
OK, I know there is a solution, just not publish files with corrupted pos reps.
Well, that's no option because this is a automated process, I just want to stop the export or skip that one pos rep that fails.
That way I can log the error and the rest of the files can be published correctly.
If needed, we can always correct the failed file and publish it again.
Thanks in advance!