We help IT Professionals succeed at work.
Get Started

Help with user form in Excel (combobox and linking entry to next available row in spreadsheet)

Last Modified: 2018-02-02
I have created a user form called Time Tracker, and been able to link the first combobox (called cboIDList) to the range called ID.

I am having difficulty with the next steps:
  • Autopopulating the combobox called cboPA_Unit, which is to be based on the value that users selects for cboIDList and references the range called PA_Unit.
  • Autopopulating the combobox called cboDesc, which is based on the value that users selects for cboIDList, and references the range called Description
  • Getting data of a completed user form to populate the next available row in a target spreadsheet

For example, if the user opens the user form and selects 2017-0001 in the dropdown for the ID combo box, then the PA Unit and Description combo boxes would both autopopulate with "Unit 1" and "Reduce Publication Files" respectively.

The txtDate field should already be autopopulated with the current date:
  • I would like users to be able to edit the date if necessary, in case they were away and need to back date a record.

Once the user completes the form by entering a value in the 'Minutes' text box, then I would like the data from the form to populate the next available row in the spreadsheet called TrackingSheet as follows:

TrackingSheet!Column A = reflects value entered in cboIDList
TrackingSheet!Column B = reflects value entered in cboPA_List
Tracking Sheet!Column C = reflects value entered in cboDesc
TrackingSheet!Column D = reflects value entered in txtDate
TrackingSheet!Column E = reflects value entered in txtMinutes

If the user form is not completely filled out, then no data should be entered into the TrackingSheet.

Description of my attached sample spreadsheet:

Dynamic named ranges:
ID = Tasks!Column A
PA_Unit = Tasks! Column B
Description = Tasks!Column C

I think I've covered it. I am new at user forms, so if you feel there are glaring issues or error handling that I should add, it would be very helpful to know.

I have attached a sample spreadsheet with my user form completed thus far, as described above.
Watch Question
Analyst Assistant
Distinguished Expert 2020
This problem has been solved!
Unlock 1 Answer and 3 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE