View Full Version : Opening word file with custom zoom automatically
arrun
10-30-2008, 08:17 PM
Hi all, I am looking for a procedure for my word document, wherein I want whenever user opens that file, this should be opened with 90% zoom. However I want to set this, for that particular file, not as general. Can anyone please tell me how to do that ?
Regards,
CreganTur
10-31-2008, 05:25 AM
Take a look at the Zoom property in VBA Help in Word. The code below should work for you:
ActiveDocument.ActiveWindow.View.Zoom.percentage = 90
arrun
10-31-2008, 05:56 AM
I just have tried, but it is not working. Zoom is not changed automatically :(
Any better idea?
CreganTur
10-31-2008, 06:32 AM
Did you put it in the Document Open event?
I've attached a document that uses the exact code I provided and it works. Take a look and see if it helps you.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.