首页 > 办公 > Word > 正文

vba调用Word对话框的代码

2019-10-25 18:47:45
字体:
来源:转载
供稿:网友

  以下的代码,就是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


注:相关教程知识阅读请移步到Word教程频道。
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表