use an userform as a filter to create an invoice

DB73

Board Regular
Joined
Jun 7, 2022
Messages
107
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
  5. 2010
  6. 2007
Platform
  1. Windows
  2. Mobile
  3. Web
Hi peeps,

i've a question about how to populate texboxes based on comboboxes that i want too use as a fliter.

i have 1 sheet witch if populate via an userform
i put all my working hours in based on a date
that "dumpstats"sheet" has coloms beginning with date, project, projectnr, normal working hours, overtime hours, rate.
so, for 1 day i can have several rows with different projects and or woring hours.

now i'm trying to make a new userform with comboxes that i want to use as a filters.
i started too make the userform with some comboxes as "year', "period",'"project", "Projectnumber".
maybe i have too add some more, but its just a start.

now, i can populate a textbox from a combox input....but....
i want too populate the textbox(es) with data from the "dumpstats"sheet with a lookup function based on the comboxes that i want too use as a filter.

for example
textbox1 needs to populated with the sum of all "normal" working hours (over 1 week of period)
textbox2 needs to be populated with the sum of all "overtime' hours". (over 1 week of period)
etc..
see attachment

then the text/value of the textboxes have to to my invoice sheet ( got the code for that, i'm able to do that)

maybe not quite clear due to my poor english, if not clear, please ask.

thanks in advance
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Knipsel3.JPG
 
Upvote 0

Forum statistics

Threads
1,223,631
Messages
6,173,465
Members
452,516
Latest member
archcalx

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