以下的代码,就是vba调用Word对话框的代码
Sub GetDialogs()
Dim i As Integer
(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/diannaorumen/)On Error Resume Next
With Application
.ScreenUpdating = False
For i = 1 To 10000
Selection.InsertAfter "对话框" & i & ":" & .Dialogs(i).CommandName & vbCrLf
Next
.ScreenUpdating = True
(本文来源于图老师网站,更多请访问https://m.tulaoshi.com/diannaorumen/)End With
End Sub