+ Reply to Thread
Results 1 to 3 of 3

Set a password to open workbook, workbook wont open on succesful password

  1. #1
    Registered User
    Join Date
    10-14-2018
    Location
    Brisbane, Australia
    MS-Off Ver
    2013
    Posts
    4

    Set a password to open workbook, workbook wont open on succesful password

    I have set a code to open a login box when the workbook is opened. The password works but the workbook wont open until I open up a different document, then the one I want to open will open up.
    This is the code I have used, am I missing something?

    Private Sub Workbook_Open()
    Application.Visible = False: Login.Show
    End Sub

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

    Re: Set a password to open workbook, workbook wont open on succesful password

    Did you include code to make the Application visible in your Login form ?
    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.

  3. #3
    Valued Forum Contributor mohan.r1980's Avatar
    Join Date
    09-18-2010
    Location
    Mumbai, India
    MS-Off Ver
    Excel 2010 (windows7)
    Posts
    729

    Re: Set a password to open workbook, workbook wont open on succesful password

    Put your code in Thisworkbook editor

+ 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. Use a password to open a workbook.
    By MariaPap in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-07-2018, 08:36 AM
  2. [SOLVED] Open workbook with password not working?
    By JPGraphX in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-27-2017, 11:18 AM
  3. Open Workbook if closed, keep open if open, insert password
    By jwahl16 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 07-09-2013, 04:09 PM
  4. [SOLVED] Password array to open all password protected workbook in a folder
    By rename in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-07-2012, 05:06 AM
  5. How to Save As a password-to-open workbook without a password?
    By ncalkins in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2012, 07:02 PM
  6. how to open workbook without password
    By dipaksolanki in forum Excel General
    Replies: 1
    Last Post: 01-22-2012, 09:44 AM
  7. Open 2nd workbook that has password
    By Josh_123456 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-15-2007, 08:47 PM

Tags for this Thread

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