![]() |
#11
|
|||
|
|||
![]()
works but
|
#12
|
|||
|
|||
![]()
And still has black even though nothing black exists in the doc
|
#13
|
|||
|
|||
![]()
doc palette explained
|
#14
|
|||
|
|||
![]()
what version of Corel Draw do you have?
|
#15
|
|||
|
|||
![]()
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. |
#16
|
|||
|
|||
![]()
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 |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Getting a list of all colors in a Document | CORNMEN | CorelDRAW/Corel DESIGNER VBA | 5 | 15-11-2008 05:14 |
List the Colors Used in a Document | designhouse | CorelDRAW/Corel DESIGNER VBA | 1 | 16-10-2007 02:36 |
How to find out what colors are used in a document? | Alex | FAQ | 1 | 16-04-2007 21:07 |
Minimizing the number of colors used in a document | Alex | FAQ | 1 | 24-05-2005 10:46 |
How to convert my document colors to grayscale | Alex | FAQ | 1 | 03-05-2005 14:55 |