加入收藏 | 设为首页 | 会员中心 | 我要投稿 | RSS
您当前的位置:首页 > 软件程序

【Word VBA案例】关闭word文档时的相关操作

时间:2023-03-04 21:08:36  来源:  作者:

序号K7B检测VBA

参数K7B检测VBA

中文K7B检测VBA

0K7B检测VBA

wdDoNotSaveChangesK7B检测VBA

不保存待定的更改。K7B检测VBA

-2K7B检测VBA

wdPromptToSaveChangesK7B检测VBA

提示用户保存待定更改。K7B检测VBA

-1K7B检测VBA

wdSaveChangesK7B检测VBA

自动保存待定更改,而不提示用户。K7B检测VBA

' 关闭活动文档(保存)K7B检测VBA

ActiveDocument.Close savechanges: = wdSaveChangesK7B检测VBA

 K7B检测VBA

' 关闭活动文档(不保存)K7B检测VBA

ActiveDocument.Close savechanges: = wdDoNotSaveChangesK7B检测VBA

 K7B检测VBA

'关闭单个文档,并保存变化:K7B检测VBA

Documents("文档名称").Close savechanges: = wdsavechangesK7B检测VBA

 K7B检测VBA

'不保存更改的情况下关闭所有文档:K7B检测VBA

Documents.Close savechange: = wdDonotsavechangesK7B检测VBA

 K7B检测VBA

'在每个文档关闭之前提示用户保存文档:K7B检测VBA

Dim doc As DocumentK7B检测VBA

For Each doc In DocumentsK7B检测VBA

    doc.Close savechanges: = wdpromptTosavechangesK7B检测VBA

Next docK7B检测VBA

 K7B检测VBA

来顶一下
返回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
推荐资讯
一般溶液有效期一览表
一般溶液有效期一览表
2022年一建《机电》真题解析
2022年一建《机电》真
给报告批量添加签章、删除签章工具
给报告批量添加签章、
水利 空表 震动频率模拟报告
水利 空表 震动频率模
相关文章
    无相关信息
栏目更新
栏目热门