password linked protrected excel
RH

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

Password to linked protrected excel sheets | Excel forum

resolvedResolved · High Priority · Version 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:

Quick Absolute Cell References

When entering cell references in a formula you probably click the cell, or you may type in the cell reference. If you require any of the 4 variations, press the F4 key now before you press Enter to toggle around the relative and absolute entries ($signs).

Note that the F4 key outside of editing a formula is the Repeat key to repeat a previous action.

View all Excel hints and tips


Server loaded in 0.05 secs.