Private Sub Command1_Click()
    Dim oConn As New ADODB.Connection
    oConn.Open "Provider=Microsoft.Jet.OLEDB.4.0;" & _
           "Data Source=C:\Book1.xls;" & _
           "Extended Properties=""Excel 8.0;"""
    oConn.Execute ("Select * into [;database=D:\Test.mdb].test1 FROM [Sheet1$]")
    oConn.Close
    Set oConn = Nothing
End Sub

相关文章:

  • 2021-11-27
  • 2021-08-19
  • 2021-10-04
  • 2022-03-08
  • 2021-11-14
  • 2021-04-14
  • 2021-04-02
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-06-01
  • 2022-01-26
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-11-05
相关资源
相似解决方案