Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default printing via vba


I have this which is in a bit of code activated by a button.

Charts("Overall Days By Period").PrintOut

but this just prints straight out to whatever printer is currentl
selected. Is there a way to change this so that it brings up th
dialog box which asks things like which printer, how many copies etc

--
neowo
-----------------------------------------------------------------------
neowok's Profile: http://www.excelforum.com/member.php...nfo&userid=594
View this thread: http://www.excelforum.com/showthread.php?threadid=27202

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 134
Default printing via vba

hi,
Application.ActivePrinter = "\\OKI-01\OKI-HP4000-01 on
Ne01:"
Application.activePrinter would be the command.
the the server file path to the printer.
the above is from my network. you will have to find out
what your's is.
Regards
Frank

-----Original Message-----

I have this which is in a bit of code activated by a

button.

Charts("Overall Days By Period").PrintOut

but this just prints straight out to whatever printer is

currently
selected. Is there a way to change this so that it

brings up the
dialog box which asks things like which printer, how many

copies etc?


--
neowok
----------------------------------------------------------

--------------
neowok's Profile: http://www.excelforum.com/member.php?

action=getinfo&userid=5940
View this thread:

http://www.excelforum.com/showthread...hreadid=272024

.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default printing via vba

Application.Dialogs(xlDialogPrint).Show

--
Regards,
Tom Ogilvy


"neowok" wrote in message
...

I have this which is in a bit of code activated by a button.

Charts("Overall Days By Period").PrintOut

but this just prints straight out to whatever printer is currently
selected. Is there a way to change this so that it brings up the
dialog box which asks things like which printer, how many copies etc?


--
neowok
------------------------------------------------------------------------
neowok's Profile:

http://www.excelforum.com/member.php...fo&userid=5940
View this thread: http://www.excelforum.com/showthread...hreadid=272024



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default printing via vba


Hi Tom Ogilvy,

Great.

Thanks
S.Sures

--
s_u_res
-----------------------------------------------------------------------
s_u_resh's Profile: http://www.excelforum.com/member.php...fo&userid=1567
View this thread: http://www.excelforum.com/showthread.php?threadid=27202

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
Excel 2003 printing problem--printing 1 document on 2 pages Bons Excel Discussion (Misc queries) 0 December 24th 09 04:15 PM
Excel Printing --Borders are not printing on the same page as data Stup88 Excel Discussion (Misc queries) 1 August 7th 07 09:34 AM
Printing a heading on each new page when printing Brian Excel Discussion (Misc queries) 3 November 15th 06 05:22 PM
Enable Double sided printing contiuously when printing multiple s. Lee Excel Discussion (Misc queries) 1 November 27th 04 01:58 AM
Printing? Worksheets not printing the same on multiple pc's! 43fan Excel Programming 2 April 29th 04 02:34 PM


All times are GMT +1. The time now is 07:09 AM.

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"