• how to display the Find dialog in VBA

    Author
    Topic
    #352779

    Hello.

    Can anyone tell me how to display the Excel2k Find (or Replace) dialog using VBA? I expected to be able to use:

    Application.Dialogs(xlDialogFind).Show

    but it seems that constant doesn’t exist. Now what?
    Many thanks,
    Robin

    Viewing 1 reply thread
    Author
    Replies
    • #514156

      I can’t find it myself, much to my surprise.

      The Word equivalent is wdDialogFileFind, but I can’t find the Excel equivalent.

      Now what? Build your own userdialog I guess- unless it’s hiding under a different name.

      I’ve been less than impressed with using some of the built-in dialog boxes myself, and have had to build my own just because of bugs and the inability to communicate with some values as documented.

      • #514158

        OK Geoff, thanks for the advice. All the same, you’d think there would be *some* way to reproduce the effect of a simple click on the ‘binoculars’ button, using VBA. Hmm..

    • #514159

      Application.Dialogs(xlDialogFormulaFind).Show

      or

      Application.Dialogs(xlDialogFormulaReplace).Show

      Which I got from this handy list: Built-In Dialog Box Argument Lists

    Viewing 1 reply thread
    Reply To: how to display the Find dialog in VBA

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: