Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Application.Dialogs(xlDialogPrint).Show - prints too soon

using the above causes the printing to begin immediately

i just want the user to be able to set the printer.
the reason is i am setting up the print settings in the code.
one of which is 11"x17" paper and the correct printeer has to be selected.
if it isn't there is an error when the program reaches that line.

thanks

--
Message posted via http://www.officekb.com

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Application.Dialogs(xlDialogPrint).Show - prints too soon

Application.Dialogs(xlDialogPrinterSetup).Show


"Almagg via OfficeKB.com" wrote:

using the above causes the printing to begin immediately

i just want the user to be able to set the printer.
the reason is i am setting up the print settings in the code.
one of which is 11"x17" paper and the correct printeer has to be selected.
if it isn't there is an error when the program reaches that line.

thanks

--
Message posted via http://www.officekb.com


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Application.Dialogs(xlDialogPrint).Show - prints too soon

not quite.

i selected the printer, but when the code reached the 11"x17" paper setting
there was an error message. your suggested code seems like it does not set
it as the default printer.

initially i was using:

Application.ActivePrinter = "\\JBXSl05\JBX_LD160C_R1880 on Ne04:"

With Sheets("ProjIdRollUp").PageSetup
.PrintTitleRows = "$1:$5"
.LeftFooter = "&8&Z&F&A"
.CenterFooter = "&8&D"
.RightFooter = "&8&P of &N"
.CenterHorizontally = True
.Orientation = xlLandscape
.PaperSize = xlPaper11x17
.PaperSize = xlPaperTabloid
.Order = xlOverThenDown
.Zoom = 69
End With

which worked, but that was when i thought only my guy was going to use it
here but it is going to be sent to others. and when it gets to the
'PaperSize' i get an error message.

--
Message posted via http://www.officekb.com

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 9
Default Application.Dialogs(xlDialogPrint).Show - prints too soon

the code for 11"x17" is:

.PaperSize = xlPaperTabloid

in fact this line was right below the one i had: xlPaper11x17

working fine now

thanks.

--
Message posted via http://www.officekb.com

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excell prints in color, highlighed areas do not show up on screen Keith Excel Discussion (Misc queries) 0 January 9th 07 11:03 PM
CELL COLOR DOES NOT SHOW ON SCREEN, DOES PRINTS GEOFF Excel Worksheet Functions 2 June 27th 06 08:16 PM
½ symbol prints a 2 and Winding square box prints a F frank-e Excel Discussion (Misc queries) 2 March 22nd 06 10:03 PM
How do I work with the "dialogs" I can insert as worksheet tabs? Jerryclick Excel Worksheet Functions 1 August 8th 05 08:56 PM
Dialogs nc Excel Discussion (Misc queries) 1 March 23rd 05 02:17 PM


All times are GMT +1. The time now is 02:27 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"