簡體   English   中英

Word2013 VBA 禁用拼寫檢查不會更新屏幕

[英]Word2013 VBA disable spellchecking does not update screen

我有一個 Word 宏,最初是通過使用用戶界面執行操作來記錄的:

    Options.CheckGrammarAsYouType = False
    Options.CheckSpellingAsYouType = False
    ActiveDocument.ShowGrammaticalErrors = False
    ActiveDocument.ShowSpellingErrors = False

但是,在執行命令后,Word 一直顯示拼寫檢查錯誤。 當從用戶界面禁用時,消失。 我是否缺少某種刷新命令?

添加這些代碼,文檔將得到刷新。

ActiveDocument.Application.ScreenRefresh

ActiveDocument.Application.ScreenUpdating = True

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM