Pivot Table color change issue

flipcube

Board Regular
Joined
Aug 29, 2011
Messages
134
I created a userform with a two command buttons (Generate PT's and Close) when Generate PT's is clicked it generates 16 PT's from one source worksheet. Within each PT, cell range J4:L4 must be one color (Orange) and range M4:X4 must be a different color (Purple) to show the difference between Actuals and Forecasted data. The VBA code I wrote works for PT's 1 thru 15 with no problem. The cells even change color on PT #16, until the userform is unloaded.

Once I unload the userform (unload userform1) range J4:M4 reverts back to the original PT color scheme and range N4:X4 stays in the color I selected (Purple). The color change is the last operation before End Sub.

can't figure out why range J4:M4 reverts back after unloading the userform...

Any help is much appreciated.
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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