Form Combo Boxes to Default to last input row data

scottmcclean

New Member
Joined
Jul 2, 2014
Messages
33
Office Version
  1. 365
Platform
  1. Windows
Hi all,
this is my first post and I am currently an occasional user of excel - this is my first attempt at Excel VBA
My question to the forum is this:

I am using Excel 2007 and would like to create a fairly complex user form that is basically a daily operations report where each row=1 days report. The form works well and updates the excel sheet perfectly.

My problem is that my daily report uses up to 10 combo boxes that allow the input of team members. I would like for the user NOT to have to keep re-selecting these team members from the combo boxes as they do not change that often. When the form is opened, is there a way to get the combo boxes to default to the previous "days" team members so that they can be re-used into the current days report.

Is this at all possible?

Many thanks in advance


Scott
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Welcome to MrExcel.

How would one determine who were the team members for the previous day? How is your data laid out?
 
Last edited:
Upvote 0
Hi Andrew, thanks for replying. The combo boxes populate specific cells within the sheet: so the team members for the previous day would be in cells 15, 18 and 21 of each row.

.Cells(iRow, 15).Value = Me.cmbTeam1.Value
.Cells(iRow, 18).Value = Me.cmbTeam2.Value
.Cells(iRow, 21).Value = Me.cmbTeam3.Value
 
Upvote 0
You can reverse those assignment expressions with an appropriate value for iRow, eg:

Code:
Me.cmbTeam1.Value = Cells(iRow, 15).Value
 
Upvote 0

Forum statistics

Threads
1,214,552
Messages
6,120,172
Members
448,948
Latest member
spamiki

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top