![]() |
#1
|
|||
|
|||
![]()
Hi
Im using X5 and have about 20 palettes which Ive named 01 to 20 and am trying to find a way of looping thru them to create 20 images which have the same shapes but are coloured differently based upon the palettes. I have tried recording a macro but dont see any reference to palettes in the macro. Is it possible and if so would somebody mind helping ? thanks nic |
#2
|
||||
|
||||
![]()
Hi.
You can loop palettes like this: Code:
Sub palLoop() Dim pal As Palette For Each pal In Palettes 'do some thing with palette Next pal End Sub ![]() |
#3
|
||||
|
||||
![]()
Hi.
I haven't tested but this might help too: Code:
Sub palLoop2() Dim pal As Palette, i As Variant, myStr As String For i = 1 To 20 If CStr(Len(i)) = 1 Then i = "0" & i Palettes(i).Open Next i End Sub ![]() |
#4
|
|||
|
|||
![]()
thanks again
n |
![]() |
Tags |
palette |
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 |
Palettes issues in X5 | biok | CorelDRAW/Corel DESIGNER VBA | 2 | 19-05-2010 12:08 |
Why do all of my palettes contain dups according to this? | runflacruiser | CorelDRAW/Corel DESIGNER VBA | 3 | 24-03-2010 19:09 |
Color Palettes? | masterchiefph | CorelDRAW/Corel DESIGNER VBA | 0 | 12-07-2007 21:18 |
Custom Palettes via VBA | ddonnahoe | CorelDRAW/Corel DESIGNER VBA | 7 | 13-11-2006 07:53 |
Temporary palettes | CORNMEN | CorelDRAW/Corel DESIGNER VBA | 2 | 10-07-2003 20:27 |