·一周点击排行
·热点推荐
您的位置:首页 >> 计算机 » 等级考试 » 如何用程序实现链接有“打开密码”的EXCEL表格 >> 正文

如何用程序实现链接有“打开密码”的EXCEL表格

发布时间:2008-4-11 14:35:00 浏览次数: 176

方法1:
MyXL.Workbooks.Open Filename:=strFileName, Password:=strPassword

方法2:
Dim oExcel As Excel.Application
Dim oBook As Excel.Workbook
Set oExcel = New Excel.Application
oExcel.Visible = True

Set oBook = oExcel.Workbooks.Open _
(FileName:="C:\Test\xxx.xls", _
ReadOnly:=True, _
Password:="secret")

Set oBook = Nothing
Set oExcel = Nothing


讨论此主题请进>>: 如何用程序实现链接有“打开密码”的EXCEL表格