Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have searching this in Google for a week, not able to figure out.

Here is the scenario.

I have multiple worksheets, in that few columns exist in few sheets. I would like to merge all worksheets and export into single access table using vb.net or C#.

So far, below code works perfectly for single worksheet.

VB
_command.CommandText = "SELECT * INTO [" & dbpath & "].[Sheet1] FROM [Sheet1$]"


1. For me Sheets are unknown, above works for one sheets.
2. Few columns existed in few sheets, like Firstname in sheet1, sheet4 ... etc. So that case i need to add both data under Firstname.

Any ideas.
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900