![]() |
1 Attachment(s)
|
And still has black even though nothing black exists in the doc
|
1 Attachment(s)
|
works but
what version of Corel Draw do you have?
|
Gettin' there. Still kind of "buggy"
Seems you had to select all shapes first so I added a line after ...Set srAllShapes = ActivePage.Shapes.All srAllShapes.AddToSelection Would also need a If new color found that's not already in the palette then add to palette So if you did an undo the palette could be upadated Error when palette is already correct and you run the macro to update. Deletes colors from the palette when it shouldn't do anything. |
Nope. This one is close but doesn't work if Pantone colors are used.
Sub Reset_DocPalette() ResetPalette ActiveDocument End Sub Sub ResetPalette(ByRef iDoc As Document) Dim CurColNo As Integer, CurPg As Page, CurSh As Shape, CurSR As ShapeRange, DoIt As Boolean For CurColNo = iDoc.Palette.Colors.Count To 1 Step -1 DoIt = True For Each CurPg In iDoc.Pages Set CurSR = CurPg.Shapes.All If CurSR.Shapes.Count > 0 Then For Each CurSh In CurSR.Shapes 'If CurSh.Fill.Type = cdrUniformFill Then CurSh.Fill.UniformColor.ConvertToCMYK If CurSh.Fill.Type = cdrUniformFill Then If CurSh.Fill.UniformColor.IsSame(iDoc.Palette.Colors(CurColNo)) Then DoIt = False End If |
All times are GMT -5. The time now is 05:37. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com