xlDialogPasteSpecial

Hi friends,

I can open PasteSpecial Dialog box with the Help of Following Code.

Application.Dialogs(xlDialogPasteSpecial).Show.

This will show the Dialog Box. But I want to Know what User Options does User selects in the PasteSpecial Box.

Is there any Way

Thanks




Answer this question

xlDialogPasteSpecial

  • Espo4Life

    The dialogs in Excel are not particularly interactive with VBA. The xlDialogSaveAs returns true if the file is actually saved and false if not, but in general you don't get much information returned from the dialogs.

    You might have to create your own userform styled after the Paste Special dialog, which then returns the user selections to the code, and then your code applies the appropriate paste special option itself.

    - Jon
    -------
    Jon Peltier, Microsoft Excel MVP
    Tutorials and Custom Solutions
    http://PeltierTech.com
    _______



  • xlDialogPasteSpecial