HDTutorial
EN

Playback starts YouTube’s embedded player (privacy-enhanced mode).

How to access a password protected file with VBA in Excel

50,412 views November 5, 2018 3:11

Watch on YouTube
ChannelBarb Henderson

Description from the creator

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.
Check out my Introduction to VBA for Excel – one hour video youtu.be/CH1cgL02wnU
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 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
crowdcast.io/easyexcelanswers

I use a Blue condensor Microphone to record my videos, here is the link
amzn.to/37gyyGa

Check out Crowdcast for creating your webinars
app.linkmink.com/a/crowdcast/83

If you need to buy Office 2019 follow
amzn.to/2VX5dv8

I use Tube Buddy to help promote my videos
Check them out
Tubebuddy.com/easyexcelanswers

Follow me on Facebook
facebook.com/easyexcel.answers


Follow me on twitter
easyexcelanswers

IG @barbhendersonconsulting

You can help and generate a translation to you own language
youtube.com/timedtext_cs_panel?c=UCFH2kZykqt-VX…

*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.

About this tutorial

Barb Henderson published this 3:11 video tutorial on November 5, 2018. It has been watched 50,412 times on YouTube.

Duration
3:11
Published
November 5, 2018
Views
50,412
Likes
159

Tags

Share

This tutorial in other languages