1.我现在引用的是EXCEL版本11.0要是目标机器版本低了怎么解决,有没有现成的补丁包?
2.求导入导出的代码,文件EXCEL目标SQL.

解决方案 »

  1.   

    1.做安装程序时,把excel的相关ocx打进去
    2.http://www.itlearner.com/article/2006/2801.shtml
      

  2.   

    OCX打包没用,要VB的代码不是SQL导出语句
      

  3.   

    怎么使用OBJECT 能说详细点吗
      

  4.   

    没看清啊!你是要把Excel导入导出ms Sql吗?
      

  5.   

    导出:其中L为label,L.Caption="'"
    str1 = L.Caption & "select * from scgl..TRece where FID<100" & L.Caption
    str1 = "bcp " & str1 & " queryout c:\temp.xls -c -S192.168.16.99 -Usa -P"
    Debug.Print str1
    Debug.Print Shell(str1)导入:
    bcp pubs..publishers2 in newpubs.xls -c -t , -r \n -Sservername -Usa -Ppassword
      

  6.   

    一个导入到EXCEL的工具,不防一试SQL导出到EXCEL http://www.onlinedown.net/soft/44040.htm