There is no "Save as" dialog in Excel at all. I can see only a "File save" dialog.
Even using the UI in any possible situation I can only see only one "File save" dialog that is used to ask for a name the first time, or ask for a new name.
So using msoFileDialogSaveAs is all you have.
It seems to be a bug in microsoft's dll. I used another interface which works fine:
Excel.Dialog dialog = _excelApp.Dialogs[Excel.XlBuiltInDialog.xlDialogSaveAs];
dialog.Show();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.