![]() |
#1
|
|||
|
|||
![]()
Is there a way to change the font of every text box in all the pages of a document?
thanks |
#2
|
||||
|
||||
![]() Quote:
Code:
Sub ChangeAllFonts() Dim p As Page Dim s As Shape For Each p In ActiveDocument.Pages For Each s In p.SelectableShapes.FindShapes(, cdrTextShape) s.Text.Story.Font = "Times New Roman" Next s Next p End Sub |
#3
|
|||
|
|||
![]()
WOW! Thanks, Alex.
The VBA help wasn't very helpful on this. This is what it says "The Story property returns all of the text from all of the text frames. The Story property returns a read-only value". |
#4
|
|||
|
|||
![]()
Alex,
Thanks for your code! I have a question for you : do you know how to add the option for a dropdown menu, allowing to select the font face needed (instead of having a fix "Times New Roman" like in this example)? I just need the font face type. |
#5
|
||||
|
||||
![]()
Are you looking to populate the drop-down list with currently installed fonts? If so you would add a ComboBox to your form (let's call this "cbxFonts"), then in the userform initialization section of your code you would add this...
Code:
Private Sub UserForm_Initialize() Dim n As Long For n = 1 To FontList.Count cbxFonts.AddItem FontList(n) Next n End Sub
__________________
Sean Waiting for a ride in the T.A.R.D.I.S. |
#6
|
|||
|
|||
![]()
If the text in powerclip it doesnt work.
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Font displaying while going thru font list | signweld | General | 2 | 19-03-2008 09:42 |
leading (line spacing) between lines of artistic text that have different font size | michael_maberly | General | 4 | 15-07-2007 11:07 |
Select specified text, change font size? | fiddler2b | CorelDRAW/Corel DESIGNER VBA | 3 | 23-04-2006 08:11 |
Change styles throughout entire document | Ruffus | General | 0 | 12-12-2005 19:58 |
weird font issue | bbolte | CorelDRAW/Corel DESIGNER VBA | 1 | 21-04-2005 15:20 |