As part of a routine I create a button to perform an advance filter.
Rather than having a separate clear filter button I would like to change this button when the filter is active
However I am not sure how to interact with this specific button after the initial ".add".
I'm guessing there must be a way of naming the button, but am not sure of the syntax.
Appreciate any support you can offer.
Thanks
Code:
With Sheets("Data").Buttons.Add(300, 0, 100, 25)
.OnAction = "PO_Filterinplace"
.Characters.Text = "View Supplier"
End With
Rather than having a separate clear filter button I would like to change this button when the filter is active
Code:
.OnAction = "Clear_Filter"
.Characters.Text = "Clear Filter"
However I am not sure how to interact with this specific button after the initial ".add".
I'm guessing there must be a way of naming the button, but am not sure of the syntax.
Appreciate any support you can offer.
Thanks
Last edited: