|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 Kil1 于 2018-8-29 07:35 编辑
在Office2016中,下述A、B、C任一种连接方式均测试通过,请教WPS中怎么写连接方式?谢谢!
Dim Conn As Object
Set Conn = CreateObject("ADODB.Connection")
Conn.Open "Provider = Microsoft.Jet.OLEDB.4.0;Extended Properties = Excel 8.0;Data source = " & ThisWorkbook.FullName 'A
' Conn.Open "Provider = Microsoft.ACE.OLEDB.12.0;Extended Properties = Excel 12.0;Data Source = " & ThisWorkbook.FullName 'B
' Conn.Open "dsn=excel files;dbq=" & ThisWorkbook.FullName 'C
|
|