I tried VBA code that doesn't work because my pivottable sweeps away (it removes) the background color of my spreadsheet.
This is what I tried:
The above VBA does work to set the color....but as I use the pivottable, the background color is removed from the spreadsheet.Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("A1:CZ2000").Interior.Color = RGB(51, 102, 255) End Sub
Thanks.
Last edited by pike; 11-29-2011 at 12:08 AM. Reason: add code tags
Is the pivot table output on the same sheet where you are putting the color?
Cheers,
Arlette
If I helped, Don't forget to add to my reputation (click on the star below the post)
Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
Use code tags when posting your VBA code: [code] Your code here [/code]
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks