For me the posted code works great as a macro. I want to use the code in a VB app (not a VBA macro). SaveAs4 then returns an error 256 - invalid file extension. Any ideas on why the code works in a macro environment but not in a VB app?
Here is my test VB 6 code:
Private swApp As...