+ Reply to Thread
Results 1 to 3 of 3

Need macro to open excel sheet that is password protected

  1. #1
    Registered User
    Join Date
    10-11-2012
    Location
    Tennessee
    MS-Off Ver
    Excel 2010
    Posts
    5

    Need macro to open excel sheet that is password protected

    Hello. Part of the macro I am using opens an excel workbook that is password protected. When I run the command to open the workbook I get the password pop up and cannot continue until I enter the password. I am looking for a way to have the macro enter the password for me so I do not need to manually type in the password to proceed with the macro. The password pop up follows immediately after I open the workbook so I am thinking I may need a command within the open command because once the workbook opens the macro stops. Any help is greatly appreciated. Below is the command I am using to open the workbook, which is immediately followed by the password pop up box.

    Workbooks.Open Filename:="C:\Scripts\24033\Position Reports Comparison Template.xlsx"

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 365 on Win11 (desktop), 2019 on Win11 (notebook)
    Posts
    8,198

    Re: Need macro to open excel sheet that is password protected

    Hi, sokker23,

    pass the password as well like
    Please Login or Register  to view this content.
    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

  3. #3
    Registered User
    Join Date
    10-11-2012
    Location
    Tennessee
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Need macro to open excel sheet that is password protected

    Perfect! That worked great. Thank you.

+ 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