I can cycle it on/off but can't figure out how to "reset" it. Once a color shape is deleted the doc palette still shows the color until you click thru and hit reset.
Sub RefreshDocPalette() ActiveDocument.Palette.Close
ActiveDocument.Palette.Open
End Sub
P.s. why after hitting "reset palette" does it add a black swatch even though there's no black used in the doc.
Thank you NudeFan. Yeah, I'm not a programmer but I get by. The code works fine now except with Pantone colors. If I delete all Uniform Fill shapes whereby leaving the Pantone colored shapes then run the macro it deletes all shapes and resets the Palette to no colors(which is the correct behavior given that all shapes are deleted)
NO, that's not correct either. It doesn't delete the pantone colored shapes just resets the DocPalette to no colors at all
It seems to me that something weird is going on with the forum software. Sometimes I don't see stuff, and other times it seems to be in the wrong sequence.
Of course, we aren't allowed to have a simple, "flat", in-chronological-order view of ALL the thread content...
That's my problem: I'm very familiar with programming in VBA, but I have only basic knowledge about the entire graphic stuff like different colour systems. That's why I didn't replied until you sent your macro with the Uniform-Colour. This is something where I'm familiar with, so I dared to reply to you. Before I had in mind the huge number of different types of colours and different ways to use them. I know, that this stuff is not easy and you most likely can do this only with limitations and only adapted for certain types of documents.Sorry, I fear, that I can't help you here further.
Not a problem at all. I see it as a learning experience myself. Hell, I don't even need the macro. Just kind of stumbled on the idea. Doubt that I'd ever use it anyway. I'll keep playing with it and see what I come up with.