LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 51
Default Printing without seeing the sheet

Hi DB,

You must unhide it before you can print it. To prevent the worksheet
from becoming visible, use Application.ScreenUpdating = False. I got
the following Sub from another thread:

=========================
Public Sub printHiddenWs(ByVal ws As Excel.Worksheet)
Dim hidden As Long
With ws
.Application.ScreenUpdating = False
hidden = .Visible
.PrintOut
.Visible = hidden
.Application.ScreenUpdating = True
End With
End Sub
=========================

Regards,
Steve
www.stkomp.com

wrote:
I am having a user input some info. The info gets tested, another
hidden form gets the data applied to the proper cells and then printed.

Q1 How can I print the correctly filled sheet without making it
visible?
Q2 Will I have to create another instance of excel to do this?
How can I create the other instance and keep it hidden?
etc...

Tks
DB


 
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
Prevent printing a sheet LindaC Excel Discussion (Misc queries) 3 January 13th 10 06:32 PM
printing only first column, why not all of sheet? Busy Aunt Susie New Users to Excel 1 July 13th 09 06:52 PM
Printing a sheet EW Excel Programming 1 October 24th 06 09:38 PM
Unprotect sheet when printing bbc1 Excel Discussion (Misc queries) 2 August 31st 05 01:41 AM
Printing Each Sheet Gary Thomson[_4_] Excel Programming 4 May 28th 04 08:51 PM


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

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

About Us

"It's about Microsoft Excel"