Feb 21 2021 12:12 AM
I have a combo box on page 1
On page 2 the value of the selection from page 1 is in a cell.
Other cells then refer to it and return either 1 or 0 depending on the value selected.
These values are in a column and the auto-filter is set to 1.
Each time I select a value in page 1 and go to page 2 I need to press the auto-filter to get the data to change.
I would like this to change automatically when the selection is made on page 1. Excel is configured to auto-calculate.
Please can anyone help me with this?
Thank you,
Marilyn
Feb 21 2021 03:29 AM
With your permission, if I can recommend. It can help us all if you upload an Excel file (without sensitive data), no picture. Even if it is said that a picture can say a thousand words, it is certainly not in the case of Excel, on the contrary in some cases. This would also be a blessing for all of us, as we can understand the problem much better, a win-win situation for everyone.
* Knowing the Excel version and operating system would also be an advantage.
Thank you for your understanding and patience
Nikolino
I know I don't know anything (Socrates)
Feb 21 2021 11:05 AM
Try this. Right click on your worksheet tab that has your autofilter, select view code, and past this into the code window that appears. Then, close the vba window.
Private Sub Worksheet_Calculate()
On Error Resume Next
Application.EnableEvents = False
Me.AutoFilter.ApplyFilter
Application.EnableEvents = True
End Sub
Feb 22 2021 01:22 AM
Thank you so much. :)
I ended up creating blocks of data for each filter option then using a lookup formula. It worked OK but what a job to do!
Mar 08 2022 08:34 PM
Mar 09 2022 10:41 AM