Master Child in VBA userform

shawnw

New Member
Joined
Apr 6, 2016
Messages
34
I have two worksheets:

- "People" (shows unique salesperson ID, name, and basic info about our sales team members, with one row per salesperson)
- "Sales" (shows details about each sale, with a foreign key back to the salesperson ID, with multiple rows per salesperson).

I have a VBA userform that lets users view and modify the salesperson data in the "People" worksheet. I would like to show zero to N rows at the bottom of the same userform and also display the data from the related "Sales" worksheet.

Basically, i want to show the salesperson at the top and their sales at the bottom of the same userform. I want to keep them synchronized. And I want the user to be able to make edits.

Is this possible in Excel?

Thanks,

Shawn
 
Yes, this is basically what I want. Since we can't put in a subform, we could just display maybe 5 rows of child records and have a NEXT and PREV buttons to show the following or previous set of five. I can't use listboxes or comboboxes, because I want all the form data (master salesperson records and child sales records) editable. Thanks!
 
Upvote 0

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.

Forum statistics

Threads
1,223,277
Messages
6,171,148
Members
452,382
Latest member
RonChand

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