OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Developer Forums > VBA > CorelDRAW/Corel DESIGNER VBA

Thread Tools Search this Thread Display Modes
Old 28-11-2010, 22:57
Posts: n/a
Default Need help creating Custom Hatch Fill in Designer


I am trying to automate a custom hatch styles based on certain standards so that when I click on a shape I can hit a button (linked to the macro) to simply apply that pre-defined hatch. Then what I want to do is simply code this, and then duplicate the Sub for variations on the hatching.

Here is what I have:

Dim OrigSelection As ShapeRange
Set OrigSelection = ActiveSelectionRange
OrigSelection.ApplyCustomHatchFill(0.45, 2, , , , , RGB(0, 0, 0), , , , , Nothing, False, False, False, 0, 0) = HatchFill

The problem I am having is (apart from being an amatuer) is that I cannot get the ApplyCustomHatchFill to work at all.

Please help!!

Thanks in advance
Reply With Quote
Old 29-11-2010, 00:30
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,782
Blog Entries: 11
Send a message via ICQ to shelbym Send a message via AIM to shelbym Send a message via MSN to shelbym Send a message via Yahoo to shelbym
Default HatchFill

Something like this should work:
ActiveSelectionRange.ApplyCustomHatchFill 15, 0.125, 0, 0, 0, 0.003, CreateRGBColor(0, 0, 0), BackColor:=CreateRGBColor(255, 255, 255)
Best of luck,

Reply With Quote
Old 29-11-2010, 16:27
Posts: n/a

Awesome, thankyou
Reply With Quote

designer, fill, hatch, vba

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a palette for custom fills mick classen CorelDRAW/Corel DESIGNER VBA 0 23-04-2007 09:21
Creating Custom Fonts In X3 bloodgroove General 4 26-03-2007 17:00
Creating an alert for custom spot color. FlashOverX General 8 26-04-2006 06:51
Creating custom arrow heads Alex FAQ 1 27-04-2005 16:05
How can I change middle colors in a custom Fountain Fill Steve CorelDRAW/Corel DESIGNER VBA 3 13-12-2002 19:11

All times are GMT -5. The time now is 08:40.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
Copyright © 2011, Oberonplace.com