UserForm as a monthly report

Big Lar

Well-known Member
Joined
May 19, 2002
Messages
557
This UserForm displays values from a large worksheet. Users select a date they wish to view with the combobox. The displayed values are the totals for that date.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
<o:p></o:p>
Suggestions on how to provide weekly or monthly totals on this UserForm.<o:p></o:p>
Rich (BB code):
<o:p></o:p>
Private Sub ComboBox1_Change()<o:p></o:p>
<o:p></o:p>
TextBox1.Value = (Format(Range("T" & ComboBox1.ListIndex + 2) + Range("U" & ComboBox1.ListIndex + 2) * 0.25, "$ #.00"))<o:p></o:p>
TextBox2.Value = (Format(Range("V" & ComboBox1.ListIndex + 2) + Range("W" & ComboBox1.ListIndex + 2) * 0.25, "$ #.00"))<o:p></o:p>
TextBox3.Value = (Format(Range("X" & ComboBox1.ListIndex + 2) + Range("Y" & ComboBox1.ListIndex + 2) * 0.25, "$ #.00"))<o:p></o:p>
TextBox4.Value = (Format(Range("T" & ComboBox1.ListIndex + 2) + Range("U" & ComboBox1.ListIndex + 2) * 0.25, "$ #.00"))<o:p></o:p>
TextBox5.Value = (Format(Range("AE" & ComboBox1.ListIndex + 2), "$ #.00"))<o:p></o:p>
TextBox6.Value = (Format(Range("AF" & ComboBox1.ListIndex + 2), "$ #.00"))<o:p></o:p>
TextBox7.Value = (Format(Range("AD" & ComboBox1.ListIndex + 2), "$ #.00"))<o:p></o:p>
TextBox8.Value = (Format(Range("AG" & ComboBox1.ListIndex + 2), "$ #.00"))<o:p></o:p>
TextBox9.Value = (Format(Range("AH2"), "$ #.00"))<o:p></o:p>
<o:p></o:p>
End Sub<o:p></o:p>
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.

Forum statistics

Threads
1,224,564
Messages
6,179,544
Members
452,925
Latest member
duyvmex

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