How to access a password protected file With VBA in Excel. How to access a file that has been encrypted and password protected. How to access a password protected file without opening it.
Code
Sub frompassword()
Dim src As Workbook
Set src = Workbooks.Open("C:\Users\Barb\Desktop\datafiles\pwdfile.xlsx", True, True, Password:="pwdtest")
ThisWorkbook.Activate
Worksheets("sheet1").Range("B2:D3").Formula = src.Worksheets("sheet1").Range("A1:C2").Formula
End Sub
For more help visit my website http://www.easyexcelanswers.com or email me at
[email protected].
Contact me regarding customizing this template for your needs.
Excel one-on-one on-line training available. Email me to arrange.
I am able to provide online help on your computer at a reasonable rate.
Check out my next one-hour Excel Webinar
https://www.crowdcast.io/easyexcelanswers
I use a Blue condensor Microphone to record my videos, here is the link
https://amzn.to/37gyyGa
Check out Crowdcast for creating your webinars
https://app.linkmink.com/a/crowdcast/83
If you need to buy Office 2019 follow
https://amzn.to/2VX5dv8
I use Tube Buddy to help promote my videos
Check them out
https://www.Tubebuddy.com/easyexcelanswers
Follow me on Facebook
https://www.facebook.com/easyexcel.answers
Follow me on twitter
easyexcelanswers
IG @barbhendersonconsulting
You can help and generate a translation to you own language
http://www.youtube.com/timedtext_cs_panel?c=UCFH2kZykqt-VX5W9waJzYvQ&tab=2
*this description may contain affiliate links. When you click them, I may receive a small commission at no extra cost to you. I only recommend products and services that I've used or have experience with.