Welcome toWord.Tips.Net
Ask a Word Question
Make a Comment
Learn Access Now
Free Printable Forms
Beauty Tips
Car Tips
Cleaning Tips
Cooking Tips
ExcelTips (menu)
ExcelTips (ribbon)
Family Tips
Gardening Tips
Health Tips
Home Tips
Legal Tips
Money Tips
Organizing Tips
Pest Tips
Pet Tips
School Tips
Wedding Tips
WordTips (menu)
WordTips (ribbon)
Quickly Adjusting Paragraph Spacing
Controlling Repagination in Macros
For most purposes, Word allows you to issue commands and perform functions by using either the mouse or the keyboard. Unfortunately, Word does not provide "equal access" for all commands. For instance, it is relatively easy to zoom in or out using the mouse, but there is no easy way to do it using the keyboard.
Apparently, Microsoft feels that you can zoom simply by choosing the menu commands necessary and then typing whatever percentage you desire. The steps to do this would be as follows:
While this provides quite a bit of flexibility, it does not allow you to easily zoom in or out. If you want this ability in Word, the only way to get it is to create a macro and then assign the macro to a keyboard combination. For instance, the following VBA macro will zoom into (enlarge) a document by 10%.
Sub MyZoomIn()
Dim ZP As Integer
ZP = Int(ActiveWindow.ActivePane.View.Zoom.Percentage * 1.1)
If ZP > 200 Then ZP = 200
ActiveWindow.ActivePane.View.Zoom.Percentage = ZP
End Sub
Notice that the macro only allows you to zoom in up to 200%. This is because Word allows you to only zoom that high, and any higher would generate an error. A slight variation on the same theme results in a macro I call MyZoomOut. It zooms out of (reduces) a document by 10%:
Sub MyZoomOut()
Dim ZP As Integer
ZP = Int(ActiveWindow.ActivePane.View.Zoom.Percentage * 0.9)
If ZP < 10 Then ZP = 10
ActiveWindow.ActivePane.View.Zoom.Percentage = ZP
End Sub
This macro sets the bottom boundary at 10%, which is the smallest you can go. Any smaller, and Word would generate an error again.
The final trick to make these macros really useful is to assign them to a keyboard combination. You can then quickly zoom in or out by 10% with a simple keystroke. The following are the steps you can use to assign a macro to a keyboard combination:
Tip #1734 applies to Microsoft Word versions: 97 2000 2002 2003
Tremendous Table Tips! We often take tables for granted, but Word includes some very powerful ways you can present your tabular data. Discover how to make your tables better, easier to understand, and more effective.