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 23-11-2008, 13:57
FilmLadd
Guest
 
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.

Quote:
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...

Thanks!!!!!
Reply With Quote
  #2  
Old 23-11-2008, 14:01
FilmLadd
Guest
 
Posts: n/a
Default

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

Quote:
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
  #3  
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.

-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
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