Hi Friends,
Example : www.imgur.com/2lAUMdM
Please see this image as example. I have a combobox called "cmbpivotvalue" in my Userform. I want " A1,A2,A3,A4,B1,B2,B3,B4,C1,C2,C3,C4 " as values in my combobox dropdown (Refer the example) . Basically I want the heading name + values under that corresponding heading.
The values are taking from the sheet called "Inconsistency" .
Someone please me to add this condition into my existing code . I hope you are clear with my definition.
Example : www.imgur.com/2lAUMdM
Please see this image as example. I have a combobox called "cmbpivotvalue" in my Userform. I want " A1,A2,A3,A4,B1,B2,B3,B4,C1,C2,C3,C4 " as values in my combobox dropdown (Refer the example) . Basically I want the heading name + values under that corresponding heading.
The values are taking from the sheet called "Inconsistency" .
Someone please me to add this condition into my existing code . I hope you are clear with my definition.
Code:
Function formInitialize(ws As Worksheet)
Dim n
Dim cell As Range
Dim pivotvaule As String
Set ws = ThisWorkbook.Worksheets("Inconsistency")
If ws.Visible = True Then
ws.Activate
Else
ws.Visible = xlSheetVisible
ws.Activate
End If
n = 38
For n = n + 1 To 100
pivotvaule = Cells(8, n).Value
Me.cmbpivotvalue.AddItem pivotvaule
pivotvaule = ""
Me.Label3.Visible = False
Me.lsbOrderSet4SelAttr.Visible = False
Next n
End Function
Last edited: