I have working macro for switching mouse cursor to pen tool and back to cursor. Now the problem is, that after I have done my drawing with pen tool, I use macro to export th