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

I need some VBA code, for a button, that will allow me to print sheets
that I have hidden.

Or if there is any other way to set up a button to do this...

Any help would be appreciated.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default printing hidden sheets

Hi SmartyPants

See
http://www.rondebruin.nl/print.htm#visible

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



"SmartyPants" wrote in message oups.com...
I need some VBA code, for a button, that will allow me to print sheets
that I have hidden.

Or if there is any other way to set up a button to do this...

Any help would be appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
Jay Jay is offline
external usenet poster
 
Posts: 671
Default printing hidden sheets

Modify to Suit:

Sub printHidden()
Application.ScreenUpdating = False

Worksheets("Sheet1").Visible = True
Worksheets("Sheet1").PrintOut
Worksheets("Sheet1").Visible = False

Application.ScreenUpdating = True
End Sub
--
Jay


"SmartyPants" wrote:

I need some VBA code, for a button, that will allow me to print sheets
that I have hidden.

Or if there is any other way to set up a button to do this...

Any help would be appreciated.


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
Printing hidden sheets with vba. gtslabs[_2_] Excel Programming 5 September 12th 06 09:01 PM
"With Sheets" Issue - macro on one sheet to affect hidden rows on other sheets Punsterr Excel Programming 3 February 21st 06 04:01 AM
Printing a hidden sheet sungen99[_62_] Excel Programming 5 January 27th 06 02:51 PM
Printing hidden sheets spence[_2_] Excel Programming 1 December 6th 03 01:09 AM
Code for Printing Hidden Sheets Todd[_7_] Excel Programming 2 December 3rd 03 02:12 PM


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