excel vba

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

Forum home » Delegate support and help forum » Microsoft Access VBA Training and help » Excel VBA

Excel VBA

resolvedResolved · High Priority · Version 2016

Trevor has attended:
No courses

Excel VBA

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: Excel VBA

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.


 

Access tip:

Design View in Relationship window

Your in the Relationship window and changes are required to be made to a Table's design.

Rather than exiting the Relationship window, if you perform a right-mouse click on the table, it opens that table up in Design view

View all Access hints and tips


Server loaded in 0.08 secs.