Need VBA help - filter sheet by one or more font colors

sparkytech

Board Regular
Joined
Mar 6, 2018
Messages
96
Office Version
  1. 365
  2. 2019
I have a UserForm with checkboxes (Field Complete, In-Service, Started, Future), and need help to perform the following: a user can select one or more of these color checkboxes, and click the "Apply Filter" button which will then filter the sheet by font color(s) in each row. Future = black, Started = green, In-Service = blue, Field Complete = grey.

I also have a "Clear Color Filter" button that I need to clear these color filters, but nothing else. Can someone please guide me? Thanks!

unnamed.png


VBA Code:
Private Sub CheckBox1_Click()
'Future check box

End Sub

Private Sub CheckBox2_Click()

'Started check box

End Sub

Private Sub CheckBox3_Click()

'In-Service

End Sub

Private Sub CheckBox4_Click()

'Field Complete check box

End Sub

Private Sub CommandButton1_Click()

'Apply Filter button

End Sub

Private Sub CommandButton2_Click()

'Clear Filters button

End Sub

Private Sub CommandButton3_Click()

'Cancel button

blnCancel = True

Me.Hide

End Sub
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Forum statistics

Threads
1,214,817
Messages
6,121,720
Members
449,050
Latest member
MiguekHeka

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