Consulting

Results 1 to 2 of 2

Thread: Enter a password for multiple protected work books

  1. #1
    VBAX Newbie
    Joined
    Nov 2018
    Posts
    3
    Location

    Enter a password for multiple protected work books

    Hi All,

    Please excuse me, I am a total beginner at this.

    This is my dilemma. I have multiple work books which are protected with a universal password.
    All of these protected workbooks are linked to on master workbook where it gets the data from the protected workbooks.

    Because we have protected the documents, when opening the master document I have to manually enter the password for each workbook it is linked too.

    Is there some sort of code where it can enter the password multiple times?

    I have some basic code which only does it automatically for one linked document? Can I not just repeat the line until it does it for all linked workbooks?

    Sub Button1_Click()
    '
    ' Button1_Click Macro
    '

    '

    ChDir "C:\Users\kingt\Desktop"
    Workbooks.Open Filename:="C:\Users\kingt\Desktop\MASTER.xlsx", UpdateLinks:=3, Password:="0dear"

    End Sub

    I hope someone can help me....

    Thanks,

    T

  2. #2
    Knowledge Base Approver VBAX Guru macropod's Avatar
    Joined
    Jul 2008
    Posts
    4,435
    Location
    This is a duplicate of: http://www.vbaexpress.com/forum/show...iple-workbooks
    Kindly don't ask the same question in multiples threads. Thread closed. You may continue the discussion in your other thread.
    Cheers
    Paul Edstein
    [Fmr MS MVP - Word]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •