OberonPlace.com Forums  

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

Thread Tools Search this Thread Display Modes
Old 23-11-2008, 13:57
Posts: n/a
Default Change Font Newbie Help

Hey All -

Old hand at VB here, but rather new at dealing with Corel VBA...

This works great if the text is selected with the text edit tool (i.e., individual text characters highlighted)... but NOT when it's generally selected using the pick tool.

ActiveShape.Text.Selection.Font = "Arial"
ActiveShape.Text.Selection.Size = 10
Would like to know how to make it change the font and size when it's selected only with the pick tool. Being forced to select all of the text by hand rather negates the advantages of doing this in a macro...

Reply With Quote
Old 23-11-2008, 14:01
Posts: n/a

Nevermind, I think I found it from another thread...

ActiveShape.Text.Story.Font = "Arial"
It works, although I have NO IDEA what the "story" object is. Does anyone care to explain that instead..?
Reply With Quote
Old 23-11-2008, 17:52
shelbym's Avatar
shelbym shelbym is offline
Senior Member
Join Date: Nov 2002
Location: Cheyenne, WY
Posts: 1,791
Blog Entries: 15
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 Story

Story simple returns all the text from all the text frames as a TextRange. As a TextRange you can then change many properties, such as Font, Fill, Alignment, Bullets and several others.

There are also several methods such as ChangeCase, Copy, Delete, Duplicate, Replace, IsSame, just to name a view.

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
Change font Manuel CorelDRAW/Corel DESIGNER VBA 5 16-07-2009 03:40
Font displaying while going thru font list signweld General 2 19-03-2008 09:42
Select specified text, change font size? fiddler2b CorelDRAW/Corel DESIGNER VBA 3 23-04-2006 08:11
Dumb Question from 'Newbie' Simon General 2 10-03-2006 14:25
Newbie questions Adrian Batchelor CorelDRAW/Corel DESIGNER VBA 2 15-11-2003 11:04

All times are GMT -5. The time now is 05:53.

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