I have written a dll in vb.net that SHOULD take a dataset as an argument, and place some of the data into an excel file based on values in the datacolumns.
Here is the problem i am having. I have an excel file with the formatting, and labels in the correct cells (like a template). I then run code to insert into the corresponding cells, data that the user needs. But, given that the Object Model for Excel is sooooo weird, I cannot get it to work. I need some help. Here is the main problem i am having currently.
I want to copy the contents of the "template" active worksheet to the new workbook worksheet. If i use the following code:
worksheets
= template.activesheet
then i get a reference to the template.activesheet, and all changes occur in the template workbook. I have searched everywhere, and connot find what i need or documentation that is useful. Please Please Please....i will not only name my firstborn after whomever helps me, but i will convince my friends to name their first borns after you as well.
Here is the problem i am having. I have an excel file with the formatting, and labels in the correct cells (like a template). I then run code to insert into the corresponding cells, data that the user needs. But, given that the Object Model for Excel is sooooo weird, I cannot get it to work. I need some help. Here is the main problem i am having currently.
I want to copy the contents of the "template" active worksheet to the new workbook worksheet. If i use the following code:
worksheets
then i get a reference to the template.activesheet, and all changes occur in the template workbook. I have searched everywhere, and connot find what i need or documentation that is useful. Please Please Please....i will not only name my firstborn after whomever helps me, but i will convince my friends to name their first borns after you as well.