-Type "MyZoomIn"
-Create
-Paste following code:
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
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
Make Shortcut Key :
File - Option - Customize Ribbon
in "Keyboard shortcuts" - "Customize"
in Categories - "Macro", you should find MyZoomIn , MyZoomOut
Assign "Ctrl - 0" into MyZoomIn
Assign "Ctrl - 1" into MyZoomOut
The shortcut key should be created
Ref: https://word.tips.net/T001734_Zooming_with_the_Keyboard.html
No comments:
Post a Comment