Re: Making text plain or bold in Word
Re: Making text plain or bold in Word
- Subject: Re: Making text plain or bold in Word
- From: "Oz.Springs" <email@hidden>
- Date: Fri, 11 Apr 2003 19:36:38 +0100
Yes, it is easy if you get Applescript to call up some Visual Basic. "Plain text" in Word is usually called "Normal" style and you will have to set the fonts and other characteristics yourself to get what you want, for example using Courier, the plainest of plain fonts. Note, however, that Courier may not be able to print in Bold.
Here is the VB part of your script:
Sub change_style()
'
' change_style Macro
' Selection.WholeStory
Selection.Style = ActiveDocument.Styles("Normal")
Selection.Style = ActiveDocument.Styles("Default Paragraph Font")
Selection.HomeKey Unit:=wdStory
Selection.MoveRight Unit:=wdWord, Count:=2, Extend:=wdExtend
Selection.Font.Bold = wdToggle
End Sub
HTH
Oz
>
This is probably simple, but I am pulling my hair out over it.
>
>
All I want to do is change all text in an opened Word document to "plain", then change the first two words of text to "bold".
>
>
Easy, I hope?
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.