lui de sagun
Member
Hi,
It's me again. I still have a problem regarding the excel that I am working on. In my "view" sheet, I have a dropdown (cmbMandaysAll). Using ListFillRange command:
========================
Private Sub cmbProducts_Change()
If cmbProducts.Text = "Service Desk" Then
Me.cmbTickets.Enabled = True
ElseIf cmbProducts.Text = "Service Delivery" Then
Me.cmbClass.Enabled = False
Me.cmbTickets.Enabled = False
Me.cmbMandaysAll.ListFillRange = "ServiceDelivery!A2:A13"
ElseIf cmbProducts.Text = "Service Management" Then
Me.cmbMandaysAll.ListFillRange = "ServiceManagement!A2:A4"
Me.cmbClass.Enabled = True
ElseIf cmbProducts.Text = "Software Design and Delivery" Then
Me.cmbMandaysAll.ListFillRange = "ServiceDesign!A2:A13"
Else
Me.cmbMandaysAll.Enabled = True
End If
End Sub
========================
I was able to create a macro wherein its value varies every time I change the value of "cmbProducts" dropdown.
My problem now is that I am getting all the values of "Cost" (from "ServiceDelivery", "ServiceManagement" and "ServiceDesign" sheets) value from all of my ListFillRange. How can I be able to extract the actual value of the "Cost" based from what I selected from "cmbProducts"?
Please help. I attached my file for your reference.
It's me again. I still have a problem regarding the excel that I am working on. In my "view" sheet, I have a dropdown (cmbMandaysAll). Using ListFillRange command:
========================
Private Sub cmbProducts_Change()
If cmbProducts.Text = "Service Desk" Then
Me.cmbTickets.Enabled = True
ElseIf cmbProducts.Text = "Service Delivery" Then
Me.cmbClass.Enabled = False
Me.cmbTickets.Enabled = False
Me.cmbMandaysAll.ListFillRange = "ServiceDelivery!A2:A13"
ElseIf cmbProducts.Text = "Service Management" Then
Me.cmbMandaysAll.ListFillRange = "ServiceManagement!A2:A4"
Me.cmbClass.Enabled = True
ElseIf cmbProducts.Text = "Software Design and Delivery" Then
Me.cmbMandaysAll.ListFillRange = "ServiceDesign!A2:A13"
Else
Me.cmbMandaysAll.Enabled = True
End If
End Sub
========================
I was able to create a macro wherein its value varies every time I change the value of "cmbProducts" dropdown.
My problem now is that I am getting all the values of "Cost" (from "ServiceDelivery", "ServiceManagement" and "ServiceDesign" sheets) value from all of my ListFillRange. How can I be able to extract the actual value of the "Cost" based from what I selected from "cmbProducts"?
Please help. I attached my file for your reference.