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.
NudeFan's code works for me.
Are you calling his sub for the active document?
Sub test_reset_docpalette() ResetPalette ActiveDocumentEnd Sub
yes
Can you provide some more information?
Did you got an error? If Yes: Which message?
I only see a picture with the code and the debugger on. This is a little less to understand the problem!