OberonPlace.com Forums  

Go Back   OberonPlace.com Forums > Corel User Forums > CorelDRAW > Macros/Add-ons

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-10-2008, 04:47
robert
Guest
 
Posts: n/a
Default delete guides corelx4

I have this simple script:

Sub DeleteGuides()
ActiveDocument.MasterPage.Guides(cdrAllGuides).Delete
End Sub


It works great in corelx3 but not in corelx4 (with sp1). Why?
Reply With Quote
  #2  
Old 10-10-2008, 15:25
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,770
Blog Entries: 10
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 Guides

X4 Supports Multiple Guide Layers, the easiest way to delete them now is with CQL code would look like this.
Code:
Sub DeleteGuides()
     ActivePage.Shapes.FindShapes(query:="@type='guideline'").Delete
End Sub
Best of luck,

-Shelby
Reply With Quote
  #3  
Old 10-10-2008, 20:51
engandy
Guest
 
Posts: n/a
Default

Code:
activedocument.MasterPage.GuidesLayer.Shapes.All.Delete
Reply With Quote
  #4  
Old 13-10-2008, 00:26
robert
Guest
 
Posts: n/a
Default

thank you!
Reply With Quote
Reply


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
Need corel 12 like format text dialouge box in corelx4 Rakeshspatial CorelDRAW/Corel DESIGNER VBA 2 07-05-2008 03:34
instant guides at hand wOxxOm CorelDRAW/Corel DESIGNER VBA 4 17-06-2005 12:33
Delete All Guides shelbym CorelDRAW/Corel DESIGNER VBA 3 22-10-2004 17:36
Deleting Shapes on the Guides Layer Rick Randall CorelDRAW/Corel DESIGNER VBA 2 28-09-2004 11:07
Bounding Guides for CorelDRAW 11 Hernán Macros/Add-ons 1 14-07-2003 23:56


All times are GMT -5. The time now is 09:07.


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