Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
XLDialog Printer Setup
We're calling Application.Dialogs
(xlDialogPrinterSetup).Show and want to test whether the "Cancel" button was clicked by the user. How do we do that? Ron |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
XLDialog Printer Setup
"Ron Crapo" wrote in message
... We're calling Application.Dialogs (xlDialogPrinterSetup).Show and want to test whether the "Cancel" button was clicked by the user. How do we do that? Hi Ron, Here's one way: Sub ShowPrinterDialog() Dim bResult As Boolean bResult = Application.Dialogs(xlDialogPrinterSetup).Show If bResult Then ''' OK was clicked Else ''' Cancel was clicked. End If End Sub -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
XLDialog Printer Setup
Hey, thanks Rob - that fix worked great!
Ron -----Original Message----- "Ron Crapo" wrote in message ... We're calling Application.Dialogs (xlDialogPrinterSetup).Show and want to test whether the "Cancel" button was clicked by the user. How do we do that? Hi Ron, Here's one way: Sub ShowPrinterDialog() Dim bResult As Boolean bResult = Application.Dialogs (xlDialogPrinterSetup).Show If bResult Then ''' OK was clicked Else ''' Cancel was clicked. End If End Sub -- Rob Bovey, MCSE, MCSD, Excel MVP Application Professionals http://www.appspro.com/ * Please post all replies to this newsgroup * * I delete all unsolicited e-mail responses * . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Printer Using USB Port Slows Page Setup | Excel Discussion (Misc queries) | |||
launch page setup with no printer | Excel Discussion (Misc queries) | |||
Printing/printer setup re Excel | Excel Discussion (Misc queries) | |||
Printer Setup For Multiple sheets | Excel Worksheet Functions | |||
Getting "printer not installed" when trying to edit page setup | Excel Worksheet Functions |