I have a macro in which ActiveWindow.View = xlNormalView
works well. However, ActiveWindow.View = xlPageBreakPreview
returns an error Run-time error '1004': Method 'View' of object 'Window' failed
.
Does anyone know what's wrong with that?
PS: the version of Microsoft Visual Basic
is 14.4.2
under Excel for Mac 2011
.