Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / General Excel Questions / May 2007

Tip: Looking for answers? Try searching our database.

Printing a group that is not grouped

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jerminski73 - 22 May 2007 13:12 GMT
    I have a document with 11 different sheets in it. If a qty is entered on any
of the sheets I would like it to be included in the group to be printed. Is
there a function to print sheets with changes from the "template" that I
have created?
Bernie Deitrick - 22 May 2007 13:57 GMT
You could use a macro.  For example, if cell A1 has the "qty" of interest:

Sub PrintSheets()
Dim mySht As Worksheet
For Each mySht In ActiveWorkbook.Worksheets
If mySht.Range("A1").Value <> "" Then mySht.PrintOut
Next mySht

End Sub

HTH,
Bernie
MS Excel MVP

> I have a document with 11 different sheets in it. If a qty is entered on any
> of the sheets I would like it to be included in the group to be printed. Is
> there a function to print sheets with changes from the "template" that I
> have created?
jerminski73 - 22 May 2007 19:38 GMT
Wow, that should have actually worked well, all of the  pricing pages have a
value in the same cell that changes as they are bidding different material
types, however, after I set the cell to AI8 (each page totals in AI8)  I ran
the macro and got my master pricing sheet of 10 pgs and two other sheets with
no value in AI8.  

I changed A1 to AI8 and <> "" to < "0"
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.