+ Reply to Thread
Results 1 to 2 of 2

how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab.

  1. #1
    Daniel
    Guest

    how to automate opening a password protected excel file? e.g. a .xls that has a password set in the security tab.

    how to automate opening a password protected excel file? e.g. a .xls that
    has a password set in the security tab.



  2. #2
    Dave Peterson
    Guest

    Re: how to automate opening a password protected excel file? e.g. a .xlsthat has a password set in the security tab.

    With no checking...

    Option Explicit
    Sub testme()
    Dim Wkbk As Workbook
    Set Wkbk = Workbooks.Open(Filename:="C:\My Documents\excel\book1.xls", _
    Password:="hithere")
    End Sub

    The code has to "know" the password.


    Daniel wrote:
    >
    > how to automate opening a password protected excel file? e.g. a .xls that
    > has a password set in the security tab.


    --

    Dave Peterson

+ 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