Word VBA - DocumentBeforeSave event?

后端 未结 3 388
北恋
北恋 2020-12-22 03:15

I am using the following VBA code to make a message box appear while saving the Word document,

Public WithEvents appWord as Word.Application 

Private Sub ap         


        
3条回答
  •  情歌与酒
    2020-12-22 04:02

    With Word 2016 I found that a change was necessary

    Set X.App = Word.Application
    

    should be

    Set X.appWord = Word.Application
    

提交回复
热议问题