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

Proper exit of Excel template

P: 24
I am opening a template, populating it with data, doing a SaveAs for the new workbook. Then I do a Process.Start(SavedFile) to open the saved workbook. The problem I have is that the template opens when the saved file opens.
What am I doing wrong?
Expand|Select|Wrap|Line Numbers
  1.  If ReportDirectoryExists(ReportFolder) = False Then
  2.                 MessageBox.Show("Could not save report successfully", "Error Saving", MessageBoxButtons.OK, MessageBoxIcon.Information)
  3.             Else
  4.                 xlWorkbook.SaveAs(strSavedFile, Excel.XlFileFormat.xlOpenXMLWorkbook)
  5.                 xlApp.xlWorkbook.Close()
  6.                 xlApp.Quit()
  7.             End If
This is a sample of the end of the code. I can provide more if needed.
Sep 30 '15 #1
Share this Question
Share on Google+
1 Reply

P: 300
juster21, can you include your Process.Start() code?
Oct 1 '15 #2

Post your reply

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