• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Making text plain or bold in Word
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Making text plain or bold in Word
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: RE: HTTP POST multipart/form-data?
  • Next by Date: Re: Making text plain or bold in Word
  • Previous by thread: Making text plain or bold in Word
  • Next by thread: Re: Making text plain or bold in Word
  • Index(es):
    • Date
    • Thread