怎样在程序中引用'Microsoft Excel 9.0 Object Library'和ADO对象,请手把手教一下,谢谢!马上给分

解决方案 »

  1.   


    机器上安装excel 2000或者xp
    工程-----引用----Microsoft Excel 9.0 Object Library'工程--->引用--->Microsoft ActiveX Data Object 2.x(版本号)
      

  2.   

    引用ADO
    工程--引用--Microsoft Activex Data Objects 2.xx
      

  3.   

    2.
    工程--->引用--->Microsoft ActiveX Data Object 2.x(版本号)    Dim CN   As New ADODB.Connection                '定义数据库的连接
        Dim Rs   As New ADODB.Recordset    CN.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\NWIND.MDB;Persist Security Info=False"
        CN.Open    Rs.CursorLocation = adUseClient
        Rs.Open "select * from employees", CN, adOpenDynamic, adLockBatchOptimistic    Set DataGrid1.DataSource = Rs
      

  4.   

    引用'Microsoft Excel 9.0 Object Library'
    工程-----引用----Microsoft Excel 9.0 Object Library'
      

  5.   

    http://www.csdn.net/develop/read_article.asp?id=14952Dim xlApp As New Excel.Application
        Dim xlBook As Excel.Workbook
        Dim xlSheet As Excel.Worksheet
        Dim xlQuery As Excel.QueryTable
      

  6.   

    工程-----引用----Microsoft Excel 9.0 Object Library'(excel 2000)                 Microsoft Excel 9.0 Object Library'(excel xp)
      

  7.   

    工程-----引用----Microsoft Excel 9.0 Object Library'(excel 2000)                 Microsoft Excel 10.0 Object Library'(excel xp)