I have a sub that creates an excel file and populate it with records from a datatable.
The event that calls this sub will loop thru multiple datatable and create different worksheet in the same excel file, without saving the file.
Does anybody know how I can code this? My current code creates new excel file for each of the datatable.
The event that calls this sub will loop thru multiple datatable and create different worksheet in the same excel file, without saving the file.
Does anybody know how I can code this? My current code creates new excel file for each of the datatable.