Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
~just a question:
is there a reason to use the dialog instead of just printing for them? thisworkbook.printout are they all printing to the same printer, or is it their default, is it a network printer etc? (I dont know personally how to see if they pressed ok to print, so easier would be to see if we could remove the dialog) Duncan DDonnachie wrote: Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
They need to be able to choose their printer, as there have been frequent
problems with network printers and queues here. "Duncan" wrote: ~just a question: is there a reason to use the dialog instead of just printing for them? thisworkbook.printout are they all printing to the same printer, or is it their default, is it a network printer etc? (I dont know personally how to see if they pressed ok to print, so easier would be to see if we could remove the dialog) Duncan DDonnachie wrote: Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Ok, sorry, I didnt know how to see if cancelled (but I do now!) Regards Duncan DDonnachie wrote: They need to be able to choose their printer, as there have been frequent problems with network printers and queues here. "Duncan" wrote: ~just a question: is there a reason to use the dialog instead of just printing for them? thisworkbook.printout are they all printing to the same printer, or is it their default, is it a network printer etc? (I dont know personally how to see if they pressed ok to print, so easier would be to see if we could remove the dialog) Duncan DDonnachie wrote: Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello
If Application.Dialogs(xlDialogPrint).Show(arg12:=2) = False _ Then MsgBox "Print was cancelled", vbInformation, "Cancelled" HTH Cordially Pascal "DDonnachie" a écrit dans le message de news: ... Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks Papou, i'll give it a try
"papou" wrote: Hello If Application.Dialogs(xlDialogPrint).Show(arg12:=2) = False _ Then MsgBox "Print was cancelled", vbInformation, "Cancelled" HTH Cordially Pascal "DDonnachie" a écrit dans le message de news: ... Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank Papou that worked, exactly what I was looking for. Now to go and add it
into the other dozen Excel workbooks, lol "papou" wrote: Hello If Application.Dialogs(xlDialogPrint).Show(arg12:=2) = False _ Then MsgBox "Print was cancelled", vbInformation, "Cancelled" HTH Cordially Pascal "DDonnachie" a écrit dans le message de news: ... Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Papou I would mark your post as the answer but I can't see the rate button on
my works explorer, do it when i get home. "papou" wrote: Hello If Application.Dialogs(xlDialogPrint).Show(arg12:=2) = False _ Then MsgBox "Print was cancelled", vbInformation, "Cancelled" HTH Cordially Pascal "DDonnachie" a écrit dans le message de news: ... Hi ok using the following code to bring up print dialogue Application.Dialogs(xlDialogPrint).Show arg12:=2 but I have code which I only want to run if the print has been successful. Obviously they can cancel out of this dialogue without printing, which I want to know. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Formula for success... corny I know | Excel Worksheet Functions | |||
Not a lottery success with Excel | Excel Worksheet Functions | |||
Determining football success.. | Excel Discussion (Misc queries) | |||
No Success with GetSaveAs | Excel Discussion (Misc queries) | |||
No success deleting modules | Excel Programming |