I'm moving this to the scripting forum for you...
Well, I thought I was, but for some reason the forum won't let me do it.
You did move it...
I saw it got moved, but it wasn't by me. Might have been the OP... I think someone moved it seconds before my attempt, so I couldn't move it to where it already was and I didn't think to look at the breadcrumbs.
VBScript enums are a little bit different, and VBScript uses export, not exportFile (and no parentheses or semicolon). At a guess, this one is probably:
Rem Given a reference to a document "myDoc" and a file myFileObj...
myDoc.export idExportFormat.idInDesignMarkup, myFileObj
But you might need to use the raw version of the enum:
myDoc.export 1768189292, myFileObj
I tend to have tunnel-vision when it comes to VB...
Sorry about that...