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 28-12-2019, 06:01
dungbtl's Avatar
dungbtl dungbtl is offline
Senior Member
 
Join Date: Apr 2004
Posts: 151
Default Possible to select same font?

Is it possible to select the same font used
instead of manually selecting one at a time?

I have some files where there are diff fonts used
and Select All Fonts doesnt cut it.

Using X4 & 2019
Reply With Quote
  #2  
Old 25-11-2020, 15:05
shelbym's Avatar
shelbym shelbym is offline
Senior Member
 
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,788
Blog Entries: 12
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 Possible to select same font?

You could do something like this. Select a line of Text and then run the following macro. It will select all others lines of text on the current page that have the same font.
Code:
Sub SelectSameFont()
    Dim s As Shape
    Dim srText As ShapeRange
    
    Set s = ActiveShape
    Set srText = ActivePage.Shapes.FindShapes(Type:=cdrTextShape)
    
    srText.Shapes.FindShapes(Query:="@com.text.story.font = '" & s.Text.Story.Font & "'").CreateSelection
End Sub
-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
Font displaying while going thru font list signweld General 2 19-03-2008 09:42
Font Collection Booker CorelDRAW/Corel DESIGNER VBA 1 18-05-2006 10:05
Select specified text, change font size? fiddler2b CorelDRAW/Corel DESIGNER VBA 3 23-04-2006 08:11
Font transform Zizy Macros/Add-ons 20 28-11-2005 01:43
Font Problem excessiveforce General 5 24-10-2005 21:14


All times are GMT -5. The time now is 13:44.


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