Pivot table formatting persists

Euler271

New Member
Joined
Dec 4, 2017
Messages
31
I have two pivot tables in two worksheets. The first one is controlled by a combo box in which the user selects a business ID. The information for that ID then appears in that worksheet's pivot table.

The second pivot table has two combo boxes that are filled based on the user's selection in the first worksheet's combo box. The first of the two combo boxes lists the states in which the selected business ID operates. When a selection is made then the second combo box is filled with the counties in the selected state in which the business operates. The second pivot table is then filled when all similar businesses in the selected county, including the selected ID from the first worksheet.

I added some code so that the selected business would be highlighted in the second pivot. My problem is that the highlighting doesn't go away. I wrote some code that deletes the highlighting when the worksheet is deactivated but it seems to persist anyway.

Does anyone know how to do this so that the highlighting doesn't persist?
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.

Forum statistics

Threads
1,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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