Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

password linked protrected excel

Forum home » Delegate support and help forum » Microsoft Excel VBA Training and help » Password to linked protrected excel sheets

Password to linked protrected excel sheets

ResolvedVersion 2010

Trevor has attended:
No courses

Password to linked protrected excel sheets

Hi there,

I wonder if someone could help me.

I have multiple documents which are all protected by single same password. I have a master document which is linked to the these documents which draws data from them.

Since putting the passwords on the workbooks, I am now having to re-enter the password for every linked document in the master document.

Is there some sort of VBA code I can use which will enter all the passwords in for me automatically? maybe some kind of line repeat or loop? I'm struggling as I haven't a clue about VBA programming, so any assistance would be greatly appreciated.

Here is my code, which enables me to automatically enter the password in for one linked documents, after that I have to manually enter it in for the rest.

Sub Button1_Click()
'
' Button1_Click Macro
'

'
ChDir "U:\WIP\Stuff"
Workbooks.Open Filename:="U:\WIP\Stuff\MASTER BOOK.xlsx", UpdateLinks:=0, Password:="0dear"
End Sub

I look forward to hearing from you someone.


Best,

Trevor

RE: Password to linked protrected excel sheets

Hi Trevor,

Thank you for the forum question.

I am sorry but it is outside the scope of this forum to develop code.

You mentioned that you have no knowledge of VBA.

You will need knowledge of loops, variables, Excel objects, and above intermediate knowledge of VBA coding before you can write the code.

You can Google and find examples but without VBA knowledge you will not be control and it will be hard to make Excel understand what you want. Also if you need to amend it later you will need to understand VBA.

Kind regards

Jens Bonde
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

Sat 10 Nov 2018: Automatically marked as resolved.

 

Training courses

Training information:

Welcome. Please choose your application (eg. Excel) and then post your question.

Our Microsoft Qualified trainers will then respond within 24 hours (working days).

Frequently Asked Questions
What does 'Resolved' mean?

Any suggestions, questions or comments? Please post in the Improve the forum thread.

Excel tip:

Use the Format Painter to copy formatting more than once in Excel

The format painter tool provides a quick and easy way to copy formatting from one cell to another in Word.

The only problem is that if you click the Format Painter once to turn it on, you can only click and drag over a single cell or adjacent range of cells; then the Format Painter turns itself off automatically.

If you want to copy formatting to cells or groups of cells that are not adjacent to each other, double-click the Format Painter - this way you will be able to copy formatting to multiple cells.

When you have finished using Format Painter, press the Esc key or click on the Format Painter button once to turn it off.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.09 secs.