如何使用VBA在Macintosh上隐藏Word文档? [英] How to Hide a Word Document on Macintosh with VBA?

查看:209
本文介绍了如何使用VBA在Macintosh上隐藏Word文档?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Windows上,我们可以说`ThisDocument.ActiveWindow.Visible = False`

On Windows, we can say `ThisDocument.ActiveWindow.Visible = False`

但是在Mac上,` Visible`属性不可用。 

But on Mac, the `Visible` property is not available. 

我们如何在Mac上隐藏文档?

How can we hide the document on Mac?

Office 2010。

Office 2010.

Thx!

推荐答案

您可以尝试设置:

Application.ScreenUpdating = False
,或者您可以尝试:打开它后,打开它:$
ActiveWindow.WindowState = wdWindowStateMinimize。您可能会尝试使用以下内容(以及Mac支持):

Application.Visible = False

You could try setting:
Application.ScreenUpdating = False
before opening the document, or you might try:
ActiveWindow.WindowState = wdWindowStateMinimizeafter opening it. Depending on what you're doing (and Mac support) you might even try:
Application.Visible = False


这篇关于如何使用VBA在Macintosh上隐藏Word文档?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆