我正在尝试打开我们在SharePoint上的文件,该文件上有密码,必须签出才能编辑。出于某种原因,我不得不输入密码,即使它应该在代码中输入。
Dim wsActive As Worksheet, wsTerm As Worksheet
Dim wbMaster As Excel.Workbook
Set wbMaster = Workbooks.Open("https://SharepointFileURL.com", , , , "SharepointFilePassword")
Set wsActive = wbMaster.Worksheets("Active Employees")
Set wsTerm = wbMaster.Worksheets("Terminations")
wsActive.Activate
我只是尝试使用URL从SharePoint打开文件并输入密码并转到Active Employees工作表。任何建议都值得赞赏,因为我无法弄清楚这个问题。