PC Review


Reply
Thread Tools Rate Thread

Conditional Worksheet Printing...

 
 
ScooterJB
Guest
Posts: n/a
 
      10th Nov 2006
Hey all, I'm kinda new here but I was wondering if anyone has any tips
to get me started on this...

I have a workbook with 39 worksheets, all structured the same where I'd
enter a list with costs and a total formula at the bottom of each,
entered and printed every week. If the total at the bottom of the
sheets (all in F24 to make thigs that much easier for me) is zero,
meaning there are no entries on that sheet for the week, I simply don't
print that sheet.

Obviously, I want to create a module that I can apply to a button that
will automatically look at all 39 sheets and select, group together,
the ones where the total does not equal zero. Basically, the sheets
that have entries on them, group them and print them. (Keeping in mind
the totals could be negarive values as well.)

I haven't got anything yet as I mentioned I'm quite new with learning
all of this but would love a place to start and get better from.

Thanx all in advance for your help...

Scott

 
Reply With Quote
 
 
 
 
Bernie Deitrick
Guest
Posts: n/a
 
      10th Nov 2006
Scott,

No need to group:

Dim mySh As Worksheet

For Each mySh In ActiveWorkbook.Worksheets
If mySh.Range("F24").Value <> 0 Then mySh.Printout
Next mySh

HTH,
Bernie
MS Excel MVP


"ScooterJB" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hey all, I'm kinda new here but I was wondering if anyone has any tips
> to get me started on this...
>
> I have a workbook with 39 worksheets, all structured the same where I'd
> enter a list with costs and a total formula at the bottom of each,
> entered and printed every week. If the total at the bottom of the
> sheets (all in F24 to make thigs that much easier for me) is zero,
> meaning there are no entries on that sheet for the week, I simply don't
> print that sheet.
>
> Obviously, I want to create a module that I can apply to a button that
> will automatically look at all 39 sheets and select, group together,
> the ones where the total does not equal zero. Basically, the sheets
> that have entries on them, group them and print them. (Keeping in mind
> the totals could be negarive values as well.)
>
> I haven't got anything yet as I mentioned I'm quite new with learning
> all of this but would love a place to start and get better from.
>
> Thanx all in advance for your help...
>
> Scott
>



 
Reply With Quote
 
ScooterJB
Guest
Posts: n/a
 
      16th Nov 2006
Actually, I would like to group because I want to create a a module
that will collate printed pages and print them multiple times based on
an input...

 
Reply With Quote
 
Bernie Deitrick
Guest
Posts: n/a
 
      16th Nov 2006
Scooter,

Sub TryNow()
Dim mySh As Worksheet
Dim bSel As Boolean

bSel = True

For Each mySh In ActiveWorkbook.Worksheets
If mySh.Range("F24").Value <> 0 Then
If bSel Then
mySh.Select
bSel = False
Else
mySh.Select False
End If
End If
Next mySh

End Sub


HTH,
Bernie
MS Excel MVP


"ScooterJB" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Actually, I would like to group because I want to create a a module
> that will collate printed pages and print them multiple times based on
> an input...
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Conditional Sum across WORKSHEET Domanda Microsoft Excel Worksheet Functions 6 23rd Apr 2011 04:14 PM
Conditional formatting from one worksheet to another... =?Utf-8?B?a2lt?= Microsoft Excel Misc 3 17th Aug 2007 02:20 AM
conditional summing from other worksheet =?Utf-8?B?bnN3b3JkMTQ3OA==?= Microsoft Excel Worksheet Functions 3 25th Apr 2007 04:44 PM
Conditional Worksheet Fomatting =?Utf-8?B?TWFyaWU=?= Microsoft Excel Setup 3 10th Oct 2006 05:39 PM
Conditional Printing of worksheet Thor Microsoft Excel Programming 1 12th Jan 2006 02:47 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 PM.