VBA to Create a Pdf File

Can Anybody help???

I  have a SolidWorks VBA macro that creates a Pdf file of a detail drawing (slddrw) every time I press the "SAVE" button.

THIS MACRO WORKS FINE!!!!

However,

Every time I run it (when I press the Save button) the drawing, presently shown on the computer screen, jumps to the left and then returns to the correct position.

Is this a bug on the software or can I fix it some how, using a VBA command?

Many thanks in advance!!!

Darren

SolidworksApi/macros