+ Reply to Thread
Results 1 to 9 of 9

automatically enter user name

  1. #1
    Registered User
    Join Date
    09-13-2017
    Location
    St. Petersburg Fl.
    MS-Off Ver
    2013
    Posts
    31

    automatically enter user name

    we have six people using two laptops. The two laptops are connected by a network. each person has his own login and user name. I am currently using this macro to automatically enter the date and time each person makes a entry into the excel log. I wish to add in column "C" to automatic enter of the user of the open excel sheet. can excel automatically pull the users name or initial (if we change it in the options menu) and place in cell "C" when a entry is made in cell "D"

    Please Login or Register  to view this content.
    Last edited by waynelong; 08-26-2018 at 04:39 AM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: automatically enter user name

    Yes it can, but before we can give you the answer you'll need to adhere to the forum rules and use code tags around your code.
    Edit the post, highlight the code then click the # icon above your reply.

    BSB

  3. #3
    Registered User
    Join Date
    09-13-2017
    Location
    St. Petersburg Fl.
    MS-Off Ver
    2013
    Posts
    31

    Re: automatically enter user name

    Sorry, I would be more than happy to follow any rules. I just don't understand what you mean by code tags.

  4. #4
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: automatically enter user name

    Follow the second line in post 2.
    Please Login or Register  to view this content.
    BSB

  5. #5
    Registered User
    Join Date
    09-13-2017
    Location
    St. Petersburg Fl.
    MS-Off Ver
    2013
    Posts
    31

    Re: automatically enter user name

    I truly apologize for my stupidity, I understand you want me to use a message box. but I just don't understand how to produce a message box.

  6. #6
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: automatically enter user name

    No, the msgbox thing was purely an example of how your code should look once code tags have been applied.

    Try this:
    1) Go back to your first post in this thread
    2) Under the post is a button that says "Edit post". Click it.
    3) Select all the text that makes up your macro code.
    4) There's a little line of icons above the pane you're editing the text in. Near the right side of all those icons is one with a # on it. Click it.
    5) Under the pane your editing in is a button that says "Save changes". Click it.

    BSB

  7. #7
    Registered User
    Join Date
    09-13-2017
    Location
    St. Petersburg Fl.
    MS-Off Ver
    2013
    Posts
    31

    Re: automatically enter user name

    I got it, Thanks

  8. #8
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: automatically enter user name

    Now add this line of code to your current sub:
    Please Login or Register  to view this content.
    BSB

  9. #9
    Registered User
    Join Date
    09-13-2017
    Location
    St. Petersburg Fl.
    MS-Off Ver
    2013
    Posts
    31

    Re: automatically enter user name

    Thank you working great

+ 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. [SOLVED] User Form with Empty row but user may enter data manually
    By Nole68 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-07-2015, 11:35 AM
  2. [SOLVED] Repeat Inputbox if user click cancel or if user enter character not in selection criteria
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-24-2014, 02:44 AM
  3. [SOLVED] automatically updating formula when user adds a user
    By Muzza86 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-25-2014, 06:23 AM
  4. Let the user know to enter time in hh:mm:ss
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-06-2009, 12:37 PM
  5. [SOLVED] List Box-a user enter any value they wish?
    By zoot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2006, 02:15 AM
  6. Getting user to enter file name
    By kuansheng in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 03-13-2006, 02:00 AM
  7. Replies: 2
    Last Post: 08-03-2005, 09:05 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