+ Reply to Thread
Results 1 to 4 of 4

Open 2nd workbook that has password

  1. #1
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    Open 2nd workbook that has password

    I have a workbook open and want to open another workbook that has a password.

    I try using the macro recorder, but it doesn't record the password being entered (like MWord does). Is there anyway to have the password already coded.


    2nd question....Is there anyway to automatically choose disable macros in the 2nd workbook from code in the first.


    thank you for any help



    Josh

  2. #2
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Josh,

    In your code add this line...

    Please Login or Register  to view this content.
    Sincerely,
    Leith Ross

  3. #3
    Forum Contributor
    Join Date
    01-18-2005
    Posts
    238

    thanks Leith

    Do you know how to code for the code to disable macros?

  4. #4
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Josh,

    The disable macro dialog is generated by Excel and isn't exposed through VBA. It may be possible using some API calls to catch when the dialog appears and click the appropriate button. I have never tried this, but it does seem possible.

    Sincerely,
    Leith Ross

+ 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