PC Review


Reply
Thread Tools Rate Thread

Cancel the printer setup dialog

 
 
=?Utf-8?B?UGV0ZXI=?=
Guest
Posts: n/a
 
      29th Mar 2007
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 With Quote
 
 
 
 
=?Utf-8?B?VmVyZ2VsIEFkcmlhbm8=?=
Guest
Posts: n/a
 
      29th Mar 2007
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 With Quote
 
Dave Peterson
Guest
Posts: n/a
 
      29th Mar 2007
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
 
Reply With Quote
 
=?Utf-8?B?UGV0ZXI=?=
Guest
Posts: n/a
 
      29th Mar 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Page Setup Dialog - Printer button Sergio Martins Windows Vista General Discussion 0 29th Jan 2008 10:17 AM
Show Printer Setup Dialog in Excel from Internet Explorer =?Utf-8?B?Sm9obiBKQk0=?= Microsoft Excel Programming 3 16th May 2007 06:47 PM
Printer Setup Dialog Box Michael Smith Microsoft Excel Programming 2 19th Sep 2005 03:43 PM
NEWBIE: Printer Setup Dialog Box problem (with code) Antony Microsoft VB .NET 2 26th Sep 2003 10:45 AM
printer setup dialog postion Trythat Microsoft C# .NET 0 24th Sep 2003 06:49 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:44 AM.