OberonPlace.com Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-02-2012, 20:42
noj noj is offline
Member
 
Join Date: Oct 2011
Location: Sydney
Posts: 31
Default Deselect Guidelines

I'm trying to export to jpeg without the guidelines. I searched previous threads and found this solution:

ActivePage.Shapes.All.CreateSelection
ActiveDocument.MasterPage.Guides(cdrAllGuides).RemoveFromSelection

But it's not working for me. The guidelines are still selected after running this code.

Does anyone know why this might not be working? Or know of a different way to remove guidelines from the selection (without deleting them)?

Thanks.
Reply With Quote
  #2  
Old 01-02-2012, 21:53
noj noj is offline
Member
 
Join Date: Oct 2011
Location: Sydney
Posts: 31
Default

I think I found a solution with:

ActiveDocument.MasterPage.GuidesLayer.Shapes.All.RemoveFromSelection
Reply With Quote
  #3  
Old 02-02-2012, 00:19
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 Remove Guides

Here is another option:
Code:
ActivePage.Shapes.All.FindAnyOfType(cdrGuidelineShape).RemoveFromSelection
or if you would like to use CQL you can do this:
Code:
ActivePage.Shapes.FindShapes(Query:="@type='guideline'").RemoveFromSelection
-Shelby
Reply With Quote
  #4  
Old 02-02-2012, 18:19
noj noj is offline
Member
 
Join Date: Oct 2011
Location: Sydney
Posts: 31
Default

Thanks Shelby
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
Document Center Guidelines PAnderson CorelDRAW/Corel DESIGNER VBA 11 15-01-2011 19:17
Select Guidelines macro kenpoist CorelDRAW/Corel DESIGNER VBA 5 05-01-2011 13:12
How do i print the guidelines? cristov General 3 26-02-2006 22:49
Deselect all selected objects Alex FAQ 1 16-05-2005 14:10
Snap to guidelines ddonnahoe CorelDRAW/Corel DESIGNER VBA 2 22-11-2004 12:21


All times are GMT -5. The time now is 23:30.


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