+ Reply to Thread
Results 1 to 3 of 3

Auto populate user form field with command botton

  1. #1
    Forum Contributor
    Join Date
    07-13-2014
    Location
    Three Rivers
    MS-Off Ver
    365
    Posts
    127

    Auto populate user form field with command botton

    Hi

    I have a employee database workbook that I have modified to suite my needs. (see attached)

    I need assistance to auto populate the employee number on the user form (field in yellow) by +1 to the previous employee number logged in the database sheet when I click on the "Add New Employee" command button on the user form.

    Thanx
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    01-23-2013
    Location
    USA
    MS-Off Ver
    Microsoft 365 aka Office 365
    Posts
    3,863

    Re: Auto populate user form field with command botton

    Hi Rudidw,

    The code below included in your modified file, should help you do what you want with actual values.

    See the following UserForm code (changes in red):
    Please Login or Register  to view this content.
    The following routine added in Ordinary Code Module Assorted:
    Please Login or Register  to view this content.
    Lewis

  3. #3
    Forum Contributor
    Join Date
    07-13-2014
    Location
    Three Rivers
    MS-Off Ver
    365
    Posts
    127

    Re: Auto populate user form field with command botton

    Hi LJMetzger

    Thank you for the reply, it works 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. Populate text boxes on user form, from combo box on same user form
    By Richardswaim in forum Excel Programming / VBA / Macros
    Replies: 26
    Last Post: 07-03-2016, 09:35 AM
  2. Want to auto-populate an order form from a storeroom count form
    By bezam in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 06-17-2014, 09:02 PM
  3. [SOLVED] How to make a Command button run the "FORM" command to fill/populate a table?
    By jrobin7 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-21-2012, 12:26 PM
  4. Calling a user form initialize sub when entering the form to populate combobox...
    By regupnorth in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-02-2012, 07:24 AM
  5. Command buttonto populate form
    By lpratt in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-09-2010, 09:00 PM
  6. auto populate field from different worksheet
    By william84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-10-2009, 12:08 AM
  7. Command botton text font
    By nsv in forum Excel General
    Replies: 1
    Last Post: 04-27-2006, 04:50 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