如何将Excel电子表格复制到Excel中
问题描述:
使用VB将excel文件复制到另一个Excel电子表格的最佳方法是什么?
我有一个excel电子表格,其中包含将使用的数据列作为另一个excel电子表格中的查找。这些值由用户维护。
我想在每次运行VB应用程序时将这个excel电子表格复制到另一个excel电子表格中。
如果可能,是否有我可以使用的示例代码。
提前谢谢
What is the best way to copy an excel file into another excel spreadsheet using VB
I have an excel spread sheet that has columns of data that will be used as lookups in another excel spread sheet. These values are maintain by a user.
I want to copy this excel spreadsheet into another excel spreadsheet everytime I run a VB application.
If possible, is there sample code that I could use.
Thanks in advance
答
你可以使用 Excel.Interop库 [ ^ ]。或者看看使用MS Excel( xls / xlsx)使用MDAC和Oledb [ ^ ]。
You could use the Excel.Interop library[^]. Or take a look at Working with MS Excel(xls / xlsx) Using MDAC and Oledb[^].