I found some examples of how to create a excel file from a data grid view, however those just create the file. What I would like to do is have excel open, with a unsaved worksheet, and have the content of the data grid view (including header names) pasted in to the worksheet after pressing a "Export to Excel" button.
Basically I want to automate what happens when you do a copy and paste from a data grid view in to excel. Any suggestions on how to do this?