+ Reply to Thread
Results 1 to 4 of 4

VB code for multiple users and log ins - Just wont work!!!

  1. #1
    Registered User
    Join Date
    01-03-2014
    Location
    UK
    MS-Off Ver
    Excel 2003
    Posts
    5

    VB code for multiple users and log ins - Just wont work!!!

    hi All,

    Simple issue that for love nor money I cant get to work.

    I have a Excel spread sheet running lots of macro's / VB code.

    I have a user form that activiets when the work book is open, that currently people just type in their name (so I can monitor who opens the wokrbook and when)

    I have now had the request that People select there name from a drop down box and input their own passowrd - to stop others from just typing in their name.

    I have created a list of user names in Sheet 16, Column A and named it 'users'
    I have asked for passwords and in column B put thier passwords.

    Simple I want when they select their name from combobox 1, that when they type their password in text box 1 (below) it grants access.
    For some reason i cant get the 1st combo box to recognise in the VB code to look up the 'users'
    Then obvioulsy, when combox 1 <> "Jack" then textbox 1 <> "password" else go to end;

    Sunday evening may be but I cant get the code in the right place or scribe it right

    Any help?

  2. #2
    Forum Contributor
    Join Date
    12-19-2012
    Location
    England
    MS-Off Ver
    Excel 2016
    Posts
    135

    Re: VB code for multiple users and log ins - Just wont work!!!

    can you attach your file?

    Regards
    Steve

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: VB code for multiple users and log ins - Just wont work!!!

    May you not simply use Environ("Username") to return automatically the user who is logged in?
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: VB code for multiple users and log ins - Just wont work!!!

    Here's a routine that I used on another thread which you can adapt:

    Please Login or Register  to view this content.
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

+ 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. Running a code at a specific hour wont work if...
    By Joaoack in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-14-2012, 03:23 PM
  2. Unload and placement wont work in user form code
    By vn900 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2011, 06:36 AM
  3. [SOLVED] Multiple conditions...why wont this work?
    By Curtis in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2006, 02:30 AM
  4. Conditional formatting code wont work
    By Robert Hargreaves in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-05-2005, 09:40 PM
  5. Why wont this code work?
    By Mark Stephens in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-30-2005, 02: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