+ Reply to Thread
Results 1 to 6 of 6

Stop prompting for a password

  1. #1
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Stop prompting for a password

    Good evening all

    I have been trying to get a workbook to open with the password in the macro

    I have tried both lines below but it keeps prompting me for the password,,,, If I click OK,, it still works

    Is there a way I can stop it prompting for the password

    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    Many thanks

    JT

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Stop prompting for a password

    You could try Application.DisplayAlerts = False before (and True after) opening the workbook.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Contributor
    Join Date
    08-04-2008
    Location
    West Calder, Scotland
    MS-Off Ver
    365
    Posts
    418

    Re: Stop prompting for a password

    Hi TMS

    Displayalerts is already in it,, it still prompts for the password.... the user doesn't need to insert the password for it to work,,,

    The workbook opens when a task is completed from another workbook... the password is inserted automatically,, but the prompt still appears,, they just click OK,, and it works..

    I'm just looking for a way to stop the prompt

    Many thanks

    JT

  4. #4
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,907

    Re: Stop prompting for a password

    Did you try this way.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

  5. #5
    Registered User
    Join Date
    06-21-2019
    Location
    Chicago, IL
    MS-Off Ver
    Excel2013
    Posts
    1

    Re: Stop prompting for a password

    I have an issue with a password protected file in Excel 2013. Every Excel file i open and go to close it prompts me for the password of one specific file. I have tried to resave these files, Delete them. I can not get this to stop. Any thoughts?

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,446

    Re: Stop prompting for a password

    @Horsty1 ...

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Excel asks user to input password, even though macro should be providing password.
    By kmordecai in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-05-2013, 01:55 PM
  2. I want an excel2007 macro to create a message box prompting to enter a password
    By chubbyda in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-27-2013, 10:04 AM
  3. VBA Password Input Box - Size Change or Hide Sheet When Prompting
    By ryanch69 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-15-2013, 09:29 AM
  4. Can't pass password through code, keeps prompting for password
    By Alexander40 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-20-2012, 03:55 PM
  5. Prompting password whenever recording a new macro.
    By Anandi in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-12-2008, 04:55 AM
  6. Password Prompting?
    By WinterCoast in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-10-2005, 07:57 AM
  7. Stop prompt for password when Excel closes
    By ZagrebMike in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-23-2005, 07:06 PM
  8. Replies: 4
    Last Post: 01-12-2005, 10:06 AM

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