View Single Post
 
Old 06-01-2021, 03:42 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

The usual way to do it is store the current setting in a variable and then use it afterwards
Code:
Sub WindowViewSettings()
'Macro to fix occasional "tiny cursor" error
  With ActiveWindow.View
    .Type = wdPrintView 'Print Layout View
    iPref = .Zoom.Percentage
    .Zoom.Percentage = 500 'Fix tiny cursor bug in Word 2003
    .Zoom.Percentage = iPref 'Specify user's percentage
  End With
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote