New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Script for Zoom in MS Office Word 2008 or 2011


Post Reply New Thread Subscribe

 
Thread Tools
Lbatson21

 
Member Since: Aug 17, 2010
Posts: 247
Lbatson21 has a spectacular aura about
Mac Specs: 2011 Mac mini and 2010 13" MacBook Pro, iPhone 4 and iPad

Lbatson21 is offline
Ok, I'm sure this might be old news to some but I'm really excited about it. I spent the last half hour or so searching for a way to automatically set the default zoom for any document I open (new or already created) in Word. Most of the responses that I found were that you can't (or at least that was all I could find, someone correct me if I'm wrong). What I was able to find was a an apple script that does exactly that. I'll explain the steps here and see if I can upload my script file and help anyone else out who might want to use this. So the link to this site Word:mac ? Window Size, View, and Zoom has several scripts for Word that might be helpful as well. The one at the bottom I had to modify and is the one I used and works for multiple open pages at once (I have it set to default all pages to 125% but this can be easily changed).

Code:
tell application "Microsoft Word"
	repeat with loopVar from 1 to count of windows
		set view type of view of (window loopVar) to page view
		set percentage of zoom of view of (window loopVar) to 125
	end repeat
end tell
The orange 125 can be changed to any size you want and this script resizes all open word documents. The red page view can be changed to any view you would like to set them to. There is a script on the link I posted above for doing so manually to each page but you're better off just selecting the percentage individually at that point.

Also, I went ahead and placed the script in the Microsoft Preferences> Word Script Menu Items folder. If you place the script there you can use the script from the drop down script icon in Word.

The final step was that I set up a shortcut key (CMD 1 for me but you can set it to anything you want) to allow me to quickly resize all my documents with the script in Word I've created. The information on how to set keyboard shortcuts is really good at this page Add Keyboard Shortcuts

I would have uploaded the script but it says invalid file. Probably a good idea not to let people upload unknown scripts. Anyway all you will need to do is open Apple script and copy and paste that code then save.

Hope this helps
QUOTE Thanks
Lbatson21

 
Member Since: Aug 17, 2010
Posts: 247
Lbatson21 has a spectacular aura about
Mac Specs: 2011 Mac mini and 2010 13" MacBook Pro, iPhone 4 and iPad

Lbatson21 is offline
I was creating another script for different zoom sizes and did find this will only work if you save the file as a script and check the box Run only. You can't edit the script once you do this but it is the only way Word will let it show up in the available scripts.
QUOTE Thanks

Post Reply New Thread Subscribe


« Online Backup Solution? | Personal Finacial Software - New to Mac »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Footnotes at end of document (Word, Office 2008) cpat OS X - Apps and Games 1 12-06-2010 05:15 PM
Office 2008 SP1 update won't install Xpcguy OS X - Apps and Games 5 06-11-2009 05:25 PM
Word 2008: spacing issue (not the 10 pt paragraph problem) joe hill OS X - Apps and Games 1 06-06-2009 12:56 PM
Control-F find can't see Microsoft Word 2008 documents! jvejve OS X - Apps and Games 0 12-28-2008 05:15 PM
Microsoft Office Mac 2008 Update help please koastal OS X - Apps and Games 0 10-24-2008 05:23 PM

All times are GMT -4. The time now is 06:39 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?