+ Reply to Thread
Results 1 to 2 of 2

remember password for excel 2010 in vba userform

  1. #1
    Forum Contributor murray83's Avatar
    Join Date
    05-05-2016
    Location
    Daventry
    MS-Off Ver
    365
    Posts
    146

    remember password for excel 2010 in vba userform

    i have the following code which works fine

    Please Login or Register  to view this content.
    and allows them to view the admin area of the workbook, but if they click back onto the main search page the tab is hidden again and can only be got to again by re-entering the password

    can i store the password until the workbook is closed so that you only have to enter it once

    cheers all

  2. #2
    Forum Expert
    Join Date
    06-25-2009
    Location
    Sofia, Bulgaria, EU
    MS-Off Ver
    Excel 2003-2013
    Posts
    1,290

    Re: remember password for excel 2010 in vba userform

    You need to make password variable global, i.e. declare it at module level - either normal module or userform module - it's not clear if this code is in userform module or in worksheet module. If this code is in UserForm - then declare it there, i.e. look for the narrow scope possible.
    Eventually you may need to change the workflow/code for getting the password for the first time / request password again of for some reason it has been changed and no longer valid.
    If you are pleased with a member's answer then use the Star icon to rate it.

+ 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. Replies: 13
    Last Post: 04-05-2017, 10:20 AM
  2. VBA to webquery and remember my Password
    By Jul Stev in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-19-2015, 08:00 AM
  3. How to get Excel to remember what sheet was active before opening userform
    By kala1928 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 09-17-2010, 04:00 AM
  4. Userform in Excel with Remember Password and User id option or check button
    By abhay_547 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 09-17-2009, 10:38 PM
  5. [SOLVED] can't remember password
    By boops699 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-04-2005, 11:10 AM
  6. [SOLVED] I downloaded excel and don't remember password how do I get
    By Wood in forum Excel General
    Replies: 4
    Last Post: 04-29-2005, 10:06 AM
  7. Can't remember My Excel Password
    By Wayne in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-21-2005, 01:06 PM

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