+ Reply to Thread
Results 1 to 5 of 5

Macro to Add new user in database in the same worksheet

  1. #1
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Macro to Add new user in database in the same worksheet

    Hello,

    I need to create a macro that would add a new user in the same worksheet "database".

    In fact, as per the attachment, I already have the Name, Lastname and Email automatically filled in when selecting an existing user (from the login field).

    However, I need your help to create a macro that will add a new entry in the user "database" (in fact add a row from A196 with user#, logion, firstname and lastname in the attached document). So when the login, Name and Lastname are filled in with a new user (bear in mind that in my current version I have a reset button that reinsert the formulas I put on the right side in blue) I need that user to be added in the table 1.

    Please feel free to get back to me if my explanations aren't clear enough.

    Thanks,
    gregory
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Macro to Add new user in database in the same worksheet

    Hi,

    Try this:
    Attached Files Attached Files

  3. #3
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro to Add new user in database in the same worksheet

    It was close!! But you based the macro on the login which can be different than "USR". Is it possible take into account the numbers?

  4. #4
    Forum Contributor
    Join Date
    04-25-2013
    Location
    Stockholm, Sweden
    MS-Off Ver
    Excel 2010
    Posts
    150

    Re: Macro to Add new user in database in the same worksheet

    Like this maybe?
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-21-2007
    MS-Off Ver
    Microsoft 365 Apps for enterprise
    Posts
    389

    Re: Macro to Add new user in database in the same worksheet

    Sorry I click before mentioning ! it was fairly easy to fix!! You solve ,my thread thanks a lot

    HTML Code: 

+ 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. MACRO to copy row range from database worksheet to a specified worksheet
    By ALNER in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2014, 03:19 PM
  2. [SOLVED] Macro acts on user selected worksheet
    By Ken Paxton in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-08-2012, 06:47 PM
  3. Macro to lock worksheet without the user having to know the password.
    By jonvanwyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-26-2012, 01:53 PM
  4. A Macro to UPDATE worksheet in database
    By peachc0bbler in forum Excel General
    Replies: 1
    Last Post: 02-27-2010, 04:45 AM
  5. [SOLVED] Macro to have user enter new worksheet name
    By MMH in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-13-2005, 09:05 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