Open workbook with password.

J

J.W. Aldridge

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top