![]() |
#1
|
|||
|
|||
![]()
I am trying to record a Macro that will change the fountain steps in a selected object without changing the color properties. My goal is to be able to select the object and change the steps to 999 without changing the colors. My recorded macro changes the colors to match the one I recoreded it with.
This is what I have: Sub Fountain_Steps() ' Recorded 12/6/2011 Dim OrigSelection As ShapeRange Set OrigSelection = ActiveSelectionRange OrigSelection.ApplyFountainSteps CreateRGBColor(), CreateCMYKColor(0, 0, 0, 0), cdrLinearFountainFill, 267.638815, 999, 8, 50, cdrDirectFountainFillBlend End Sub thanks for your help! |
#2
|
||||
|
||||
![]()
I would do something like this:
Code:
Sub ChangeFountainSteps() Dim s As Shape Dim sr As ShapeRange Set sr = ActiveSelectionRange.Shapes.FindShapes() For Each s In sr.Shapes If s.Fill.Type = cdrFountainFill Then s.Fill.Fountain.Steps = 999 Next s End Sub -Shelby |
#3
|
|||
|
|||
![]()
Worked Perfectly!!! Thanks!
|
![]() |
Tags |
fountain fills, fountain steps, macro |
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 |
Need Macro to Change Fill Color Then Export to PNG | bob | CorelDRAW/Corel DESIGNER VBA | 1 | 20-01-2010 18:57 |
Create fountain fill helper macro | wOxxOm | CorelDRAW/Corel DESIGNER VBA | 21 | 07-09-2007 14:40 |
Removing Fountain Fills Macro problem | knowbodynow | CorelDRAW/Corel DESIGNER VBA | 3 | 09-07-2006 11:10 |
I cant change fountain fill steps in property bar? | Kursad | General | 1 | 24-05-2006 08:40 |
How can I change middle colors in a custom Fountain Fill | Steve | CorelDRAW/Corel DESIGNER VBA | 3 | 13-12-2002 19:11 |