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
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
> 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.
[quoted text clipped - 7 lines]
> Tks
> DB