Combobox Fill Data
Private Sub ComboBox1_DropButtonClick()
Me.ComboBox1.ListFillRange = "Name"
End Sub
Advance Filter
Private Sub ComboBox1_Change()
On Error Resume Next
Sheet1.Range("E2") = Me.ComboBox1.Value
a = Application.WorksheetFunction.CountA(Sheet1.Range("A:A"))
Sheet1.Range("A" & 1, "D" & a).AdvancedFilter xlFilterInPlace, _
Sheet1.Range("E1:E2")
End Sub
Show All Data
Private Sub CommandButton1_Click()
On Error Resume Next
ActiveSheet.ShowAllData
End Sub
No comments:
Post a Comment
Please do not enter any spam message in comment box