0

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.

4

1 回答 1

1

尽管 Mac 的 VBA 编辑器具有xlPageBreakPreview无法执行的属性,因为 Excel 2011 中没有分页预览模式。这就是为什么在 Excel 2011 中执行时总是会返回错误的原因。

于 2014-06-20T21:50:33.917 回答