Setting Default filename in Excel fileSaveAs Dialog
-
I am writing a VB.NET application that dumps data to Excel. After the dump, I want to prompt the user to save the file by showing the SaveFileAs Dialog Box. I am having trouble setting the default file name in the Dialog Box with the statement: Result = EXL.Dialogs(Excel.XlBuiltInDialog.xlDialogSaveAs).Show Argl:= fName VB.NEt indicates a syntax error (End of statement expected) The equivalent statement works in Excel, what am I doing wrong? Thanks! Nelson
-
I am writing a VB.NET application that dumps data to Excel. After the dump, I want to prompt the user to save the file by showing the SaveFileAs Dialog Box. I am having trouble setting the default file name in the Dialog Box with the statement: Result = EXL.Dialogs(Excel.XlBuiltInDialog.xlDialogSaveAs).Show Argl:= fName VB.NEt indicates a syntax error (End of statement expected) The equivalent statement works in Excel, what am I doing wrong? Thanks! Nelson