Link to home
Start Free TrialLog in
Avatar of Andreamary
Andreamary

asked on

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

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.
ProdMainTimeTracker.xlsm
ASKER CERTIFIED SOLUTION
Avatar of Norie
Norie

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Andreamary
Andreamary

ASKER

Terrific - thanks very much, Norie!

I will change the combo boxes, since they aren't necessary, as you mentioned. The one thing I realized as I tested is that I should have included the clearing of the form of data after clicking the 'Save' button as part of the criteria. I'll see if I can figure that out. :-)

Cheers,
Andrea
Thanks for the quick response...