萬盛學電腦網

 萬盛學電腦網 >> WORD教程 >> WORD使用技巧 >> vba調用Word對話框的代碼

vba調用Word對話框的代碼

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

copyright © 萬盛學電腦網 all rights reserved