test. xls  导入 数据库表 table1
table1 中的含有列 A B C D   而test.xls 中只有A和B 也就是说 test.xls中的数据 是表table1 的一部分....    
'代码
 cn.Execute "insert  into table1(A,B) select  A , B  from OpenRowSet('microsoft.jet.oledb.4.0','Excel  8.0;HDR=Yes;database=c:\test.xls;','select A,B from [sheet1$]')"
.....
可以导入成功了(谢谢 faysky2)
现在的问题是 我在把 test.xls中 的数据到入table1 的同时 把c 和 d 同时附值 比如 列 c d里面全都相同的数据 c 全部附值“单位” d里面全部附值“第一季度” 那该怎样写?
谢了  现在是要钱没钱  要分没分了  ,帮一下小弟吧  以后跟你们混了!!!!1