您现在的位置: 万盛学电脑网 >> 办公软件 >> WORD教程 >> WORD使用技巧 >> 正文

vba调用Word对话框的代码

作者:佚名    责任编辑:admin    更新时间:2022-06-22

  以下的代码,就是vba调用Word对话框的代码

  Sub GetDialogs()

  Dim i As Integer

  On Error Resume Next

  With Application

  .ScreenUpdating = False

  For i = 1 To 10000

  Selection.InsertAfter "对话框" & i & ":" & .Dialogs(i).CommandName & vbCrLf

  Next

  .ScreenUpdating = True

  End With

  End Sub