Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
eab
 
Posts: n/a
Default automatically PRINT only active cells?

Can I set up a worksheet to automatically only print the active cells each
time it is printed?
  #2   Report Post  
Ron de Bruin
 
Posts: n/a
Default

Hi eab

You can use this event in the Thisworkbook module

Private Sub Workbook_BeforePrint(Cancel As Boolean)
Cancel = True
Application.EnableEvents = False
Selection.Areas(1).PrintOut
Application.EnableEvents = True
End Sub



--
Regards Ron de Bruin
http://www.rondebruin.nl



"eab" wrote in message ...
Can I set up a worksheet to automatically only print the active cells each
time it is printed?



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
Counting only active cells Sac73 Excel Discussion (Misc queries) 16 April 4th 05 05:49 AM
update row numbers after different active cells in macros followi. LMIV Excel Discussion (Misc queries) 11 February 16th 05 12:44 AM
How do I have an active cell highlight automatically lstuckey Excel Discussion (Misc queries) 2 February 14th 05 08:28 PM
print specific cells Wendy Excel Discussion (Misc queries) 1 February 10th 05 06:52 PM
Protected cells -automatically format to a different color Fred Evans Excel Discussion (Misc queries) 9 December 3rd 04 12:59 PM


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