+ Reply to Thread
Results 1 to 3 of 3

vba macro open password protected workbook

  1. #1
    Ray
    Guest

    vba macro open password protected workbook

    How do I get a Macro to open a password protected workbook without prompting
    the user for it? I have several users writing to the same file via macros but
    I want to keep their information private from each other.

  2. #2
    Greg Wilson
    Guest

    RE: vba macro open password protected workbook

    Just pass the password as an argument the same as you do with the wb path and
    name. Something like this:

    Workbooks.Open ThisWorkbook.Path & "\gregtest.xls", Password:="greg"

    Regards,
    Greg

    "Ray" wrote:

    > How do I get a Macro to open a password protected workbook without prompting
    > the user for it? I have several users writing to the same file via macros but
    > I want to keep their information private from each other.


  3. #3
    DavidAtCaspian
    Guest

    RE: vba macro open password protected workbook

    If you press F1 on the word 'open', the help system will also tell you about
    various other choices, such as update links, and read only. (If the help has
    been installed OK!)

    "Greg Wilson" wrote:

    > Just pass the password as an argument the same as you do with the wb path and
    > name. Something like this:
    >
    > Workbooks.Open ThisWorkbook.Path & "\gregtest.xls", Password:="greg"
    >
    > Regards,
    > Greg
    >
    > "Ray" wrote:
    >
    > > How do I get a Macro to open a password protected workbook without prompting
    > > the user for it? I have several users writing to the same file via macros but
    > > I want to keep their information private from each other.


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1