Applescript version of macro in Word

P

phmike457

Hi,
I am totally clueless about how to use Applescript in general, much
less in Word. I have one simple macro in Word 2004 that I used all the
time.

I'm a teacher with poor eyesight, and I do a lot of my correction from
documents that are emailed to me. The macro I used first changed the
view to Page Layout and then the Zoom to Page Width. It then turned on
Track Changes with Highlight Changes and Track Changes While Editing
turned on.

It is driving me crazy to have to do this manually every time! Is it
possible to do this in Applescript? How can I do it?

Thanks,
Mike
 
D

Daiya Mitchell

Yes, it's possible. I'm pretty novice at scripting myself, but the
script below seems to work for me (Word 12.0.1, OS 10.4.11, PPC). See if
it does what you want. It sets Page Layout view, sets Zoom to Page
Width, and turns on Track Changes, and turns on the Reviewing toolbar
(which I assumed you would want). I'm finding that Highlight Changes
happens automatically, without script intervention, but holler if you
don't find it so.

For installation instructions, see here:
http://word.mvps.org/Mac/InstallApplescript.html


tell application "Microsoft Word"
set view type of view of active window to page view
set page fit of zoom of view of active window to page fit best fit
set track revisions of active document to true
set visible of command bar "Reviewing" to true
activate
end tell
 
P

phmike457

Hi Daiya,

That seems to work perfectly! MANY thanks from the extremely near-
sighted!!

:)
Best,
Mike
 
D

Daiya Mitchell

Glad to help. I also am a teacher trying to relieve eye strain, so I've
been converting my macros to scripts. Glad that worked.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top