7,786
社区成员
发帖
与我相关
我的任务
分享Private Sub vWordApp_WindowSelectionChange(ByVal Sel As Selection)
Dim vWord As Range
For Each vWord In Sel.Words
Debug.Print vWord.Text
Next vWord
End SubOption Explicit
Private WithEvents vWordApp As Word.Application
Private Sub InitApp()
Set vWordApp = Application
End Sub
Private Sub vWordApp_WindowSelectionChange(ByVal Sel As Selection)
End Sub