Rss & SiteMap
Foxtable(狐表) http://www.foxtable.com
Dim doc As MSExcel.Workbook = App.WorkBooks.Open(ProjectPath & "abc.xls", password:="123zhb") 修改程序: Dim fp1, ff1, fpf1 As String fp1 = "T:\Logistic\Purchase\Purchase Order\采购申请跟踪\" ff1 = "采购申请单2021~.xlsm" fpf1 = "T:\Logistic\Purchase\Purchase Order\采购申请跟踪\采购申请单2021~.xlsm" Dim App As New MSExcel.Application App.DisplayAlerts = False App.visible = True Dim Wb As MSExcel.WorkBook = App.WorkBooks.Open(fpf1, Password:="001") '实际文件路径,密码 App.run("Update_Purchase_Application") Wb.Save App.quit 运行到这条语句还是出现了要求输入密码的对话框, 只有我输入了密码"001"才继续运行. |