Share via

Display Built-In Print and Find Dialog Boxes in VBA

DPA 5 Reputation points
2026-06-17T10:40:10.2733333+00:00

I am looking for the webpage documentation for displaying built-in menu dialog boxes in Word VBA.  For example, I want to display the “Print” dialog box and the “Find” dialog box in a Word VBA program.  I found this documentation before, but I have been unable to find it again.  Does anyone know the links to some of those webpages?  FYI.

Microsoft 365 and Office | Development | Other
0 comments No comments

3 answers

Sort by: Most helpful
  1. Vergil-V 15,360 Reputation points Microsoft External Staff Moderator
    2026-06-17T11:21:31.84+00:00

    Hi DPA

    Based on my research, the following document appears to be highly relevant to your request: https://mms.heiai.top/en-us/visualstudio/vsto/how-to-programmatically-use-built-in-dialog-boxes-in-word?view=visualstudio&tabs=csharp

    May I confirm whether this is the document you are looking for?

    If not, please let me know, and I'll be happy to help refine the search further


    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    1 person found this answer helpful.

  2. Senthil kumar 960 Reputation points
    2026-06-17T11:08:15.3733333+00:00

    Hi @DPA

    This is you want to expected webpage document. please check and confirm.

    https://mms.heiai.top/en-us/office/vba/word/concepts/customizing-word/displaying-built-in-word-dialog-boxesThanks.

    Was this answer helpful?


  3. AI answer

    2026-06-17T10:40:25.23+00:00

    The documentation for displaying built-in Word dialog boxes in VBA is in the Word VBA “customizing Word” section.

    To display built-in dialog boxes such as Print and Find in Word VBA, use the Dialogs collection with the appropriate WdWordDialog constant and the Show method. For example:

    Sub ShowPrintDialog()
        Dialogs(wdDialogFilePrint).Show
    End Sub
    
    Sub ShowFindDialog()
        Dialogs(wdDialogEditFind).Show
    End Sub
    

    The general pattern and examples are documented here:

    • Displaying built-in dialog boxes and using .Show, .Display, .Execute, and DefaultTab:
      • See “Showing a built-in dialog box” and related examples such as:
            Sub ShowOpenDialog()
                Dialogs(wdDialogFileOpen).Show
            End Sub
            
            Sub ShowPrintDialog()
                Dialogs(wdDialogFilePrint).Show
            End Sub
            
            Sub ShowBorderDialog()
                With Dialogs(wdDialogFormatBordersAndShading)
                    .DefaultTab = wdDialogFormatBordersAndShadingTabPageBorder
                    .Show
                End With
            End Sub
        
    • Argument lists for specific dialog constants (including Print and Find) are documented in the “Built-in Dialog Box Argument Lists (Word)” topic. For example:
      • wdDialogFilePrint arguments such as Background, Range, From, To, NumCopies, Printer, etc.
      • wdDialogEditFind arguments such as Find, Replace, Direction, MatchCase, WholeWord, PatternMatch, Wrap, and others.

    These two topics together cover how to show the dialogs and how to work with their arguments.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.