Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 158
Default VBA quick print function?

Does VBA have any functions that will immediately print a
range of cells that I specify? I'm interested in a function
that will immediately send a print job to the printer. I don't
want to show the user the standard "Print" dialog box which
lets them change the printer or the page range. I just want
the print function to immediately send the spreadsheet contents
to the default printer.

Also, our spreadsheet has a "page range" of ten pages. Is
there a function that lets me choose how many pages to
print??

Thank you!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 538
Default VBA quick print function?

Robert Crandal wrote:

Does VBA have any functions that will immediately print a
range of cells that I specify? I'm interested in a function
that will immediately send a print job to the printer. I don't
want to show the user the standard "Print" dialog box which
lets them change the printer or the page range. I just want
the print function to immediately send the spreadsheet contents
to the default printer.

Also, our spreadsheet has a "page range" of ten pages. Is
there a function that lets me choose how many pages to
print??


Check the PrintOut method. For a range of cells:
Range("A1:B2").PrintOut

For the entire workbook, pages 2 to 4:
ActiveWorkbook.PrintOut From:=2, To:=4

Check the helpfile for more parameters.

--
I spent my entire childhood wishing that I was older.
Now I'm older and this **** sucks.
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
Quick print not recognizing page setup in Excel 2007 SMoncrief Excel Discussion (Misc queries) 0 August 31st 09 08:45 PM
Quick help with a simple function! [email protected] Excel Discussion (Misc queries) 4 July 20th 06 06:17 AM
Quick question - quick answer about assigning shortcut keys funkymonkUK[_75_] Excel Programming 1 October 13th 05 10:50 AM
Quick Little Function Help... Brian07002 Excel Worksheet Functions 2 July 8th 05 07:56 PM
Excel should have a quick and simple "change case" function like . NinaSvendsen Excel Worksheet Functions 1 January 28th 05 03:15 PM


All times are GMT +1. The time now is 07:12 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"