So you're trying to drive the standard "Save" dialog? Take a look at @ronald's Export macro to see how to do that -- you may even find that, with a bit of tweaking, that macro will do what you want.
1 Like