Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Does anyone know of a way of detecting the Cancel button from the Printer
Setup dialogue box, as in ... Application.Dialogs(xlDialogPrinterSetup).Show -- Regards - Peter |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Peter,
if it returns false, the user clicked on Cancel. If False = Application.Dialogs(xlDialogPrinterSetup).Show Then MsgBox "User Cancelled" End If -- Hope that helps. Vergel Adriano "Peter" wrote: Does anyone know of a way of detecting the Cancel button from the Printer Setup dialogue box, as in ... Application.Dialogs(xlDialogPrinterSetup).Show -- Regards - Peter |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One way:
Dim res As Boolean res = Application.Dialogs(xlDialogPrinterSetup).Show MsgBox res Peter wrote: Does anyone know of a way of detecting the Cancel button from the Printer Setup dialogue box, as in ... Application.Dialogs(xlDialogPrinterSetup).Show -- Regards - Peter -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
It does help - Thankyou.
-- Regards - Peter "Vergel Adriano" wrote: Peter, if it returns false, the user clicked on Cancel. If False = Application.Dialogs(xlDialogPrinterSetup).Show Then MsgBox "User Cancelled" End If -- Hope that helps. Vergel Adriano "Peter" wrote: Does anyone know of a way of detecting the Cancel button from the Printer Setup dialogue box, as in ... Application.Dialogs(xlDialogPrinterSetup).Show -- Regards - Peter |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"cancel" caption doesn't show up on cancel dialog | Excel Programming | |||
ok cancel dialog box | Excel Programming | |||
Printer Setup Dialog Box | Excel Programming | |||
Bypassing OK/Cancel Dialog Box | Excel Programming | |||
Bypassing OK/Cancel Dialog Box | Excel Programming |