OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 28-12-2019, 07:01
dungbtl's Avatar
dungbtl dungbtl is offline
Senior Member
Join Date: Apr 2004
Posts: 155
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
Old 25-11-2020, 16:05
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 13
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.
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
Reply With Quote

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 10:42
Font Collection Booker CorelDRAW/Corel DESIGNER VBA 1 18-05-2006 11:05
Select specified text, change font size? fiddler2b CorelDRAW/Corel DESIGNER VBA 3 23-04-2006 09:11
Font transform Zizy Macros/Add-ons 20 28-11-2005 02:43
Font Problem excessiveforce General 5 24-10-2005 22:14

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

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