Hello sorry to ask you this but i have pass a week to search on the internet and I am not able to find my problem
Here the macro
Private Sub CommandButton1_Click()
ActiveSheet.PageSetup.PrintArea = "$a$1:$h$60"
bResponse = Application.Dialogs(xlDialogPrinterSetup).Show
If TypeName(response) = "Boolean" Then Exit Sub
ActiveSheet.PrintOut Copies:=1, Collate:=True
ActiveSheet.PageSetup.PrintArea = "$a$1:$AA$60"
End Sub
What is I am trying to do is creating a button call Print that will print the page a need. For that it is working find the thing is if I cancel that box of the printer that appear it will print anyway
I am not a pro in macro or visual basic so I hope that someone quant gives me hints to my problem
thank you
Here the macro
Private Sub CommandButton1_Click()
ActiveSheet.PageSetup.PrintArea = "$a$1:$h$60"
bResponse = Application.Dialogs(xlDialogPrinterSetup).Show
If TypeName(response) = "Boolean" Then Exit Sub
ActiveSheet.PrintOut Copies:=1, Collate:=True
ActiveSheet.PageSetup.PrintArea = "$a$1:$AA$60"
End Sub
What is I am trying to do is creating a button call Print that will print the page a need. For that it is working find the thing is if I cancel that box of the printer that appear it will print anyway
I am not a pro in macro or visual basic so I hope that someone quant gives me hints to my problem
thank you