By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,806 Members | 1,506 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,806 IT Pros & Developers. It's quick & easy.

Excel.Application Change Default filename "Sheet1"

radcaesar
Expert 100+
P: 759
Hi All,
I had a c# application and i had load the Excel sheet using Excel.Application() object. No when i save the file from the displayed excel screen, i seen the "sheet1" as default file name. I Don't want that, i want it to be defined during runtime.

Ex: "MySheet"

Any Suggestions ?
Apr 23 '07 #1
Share this Question
Share on Google+
1 Reply


SammyB
Expert 100+
P: 807
Hi All,
I had a c# application and i had load the Excel sheet using Excel.Application() object. No when i save the file from the displayed excel screen, i seen the "sheet1" as default file name. I Don't want that, i want it to be defined during runtime.

Ex: "MySheet"

Any Suggestions ?
Show me a little code and I can help. Your workbook object has a SaveAs and a SaveCopyAs method that have a filename as a parameter. HTH --Sam
Apr 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.