ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Open workbook with password. (https://www.excelbanter.com/excel-programming/399011-open-workbook-password.html)

J.W. Aldridge

Open workbook with password.
 


Got this macro, but it still prompts for password.

Any clues as to why?



Sub Macro7()
'
' Macro7 Macro

Workbooks.Open Filename:="X:\FHI Share\pcp\NEW PCP DATA.xls",
PASSWORD:="pcp123"

ActiveWorkbook.Save
ActiveWindow.Close



End Sub



All times are GMT +1. The time now is 07:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com