View Single Post
 
Old 06-01-2021, 08:35 AM
Matt C's Avatar
Matt C Matt C is offline Windows 10 Office 97-2003
Advanced Beginner
 
Join Date: May 2021
Location: London, UK
Posts: 30
Matt C is on a distinguished road
Question Tell VBA to remember user's View and Zoom Percentage settings

Hi folks.

Just a quickie. The code below is a quick fix for Word 2003's notorious "tiny cursor" error which sometimes arises.

Is there any way of amending this so that VBA remembers the user's view settings (e.g. Print View, Reading View) and the current zoom percentage, and restores them after the quick zoom to 500%?

Currently, this works for my own personal settings (Print View, Zoom 120%) but I'm mindful that I may wish to share the template with other users who have their own settings.

Quote:
Sub WindowViewSettings()
'
'Macro to fix occasional "tiny cursor" error

With ActiveWindow.View
.Type = wdPrintView 'Print Layout View
.Zoom.Percentage = 500 'Fix tiny cursor bug in Word 2003
.Zoom.Percentage = 120 'Specify user's percentage
End With

End Sub
Thanks, peeps.
Reply With Quote