Range I2: I20 is sum range
Range B2:B20 is Date Range (Contain Different date of months)
TextBox3 is show result of sum for the month
combobox1 contains name of the month
it is use for sum of month select in combobox with the sumproduct function use in userform
>>> use code - tags <<<
but when macro is run nothing is show please correct in this code what is wrong
Range B2:B20 is Date Range (Contain Different date of months)
TextBox3 is show result of sum for the month
combobox1 contains name of the month
it is use for sum of month select in combobox with the sumproduct function use in userform
>>> use code - tags <<<
Code:
Private Sub CommandButton1_Click()
On Error Resume Next
me.TextBox3.Value = Application.WorksheetFunction.SumProduct(Sheets("Cash_Data").Range("I2:I20"), --(Application.WorksheetFunction.Text(Sheets("Cash_Data").Range("B2:B20"), "MMM") = me.ComboBox1.Value))
End Sub
Last edited by a moderator: