LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Selecting Sheets based on Cell Criteria.

Jim,

Thanks for all your help. I can't act upon this until next week, as I will
be traveling. I will try out your response when I get back. As for my
level.... I'm going for the "Total Immersion" approach. Nobody here is
willing to try... so I'm jumping in with both feet!(let's hope there's no
gurgling sounds). I'm looking for a good reference book, any favorites?

Thanks again,
Tim

"Jim Thomlinson" wrote:

Something like this.

Option Explicit

Public PrintSheets As New Collection

Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
On Error Resume Next
PrintSheets.Add Sh, Sh.Name
On Error GoTo 0

End Sub

Public Sub PrintCollection()
Dim wks As Worksheet

For Each wks In PrintSheets
MsgBox wks.Name 'wks.printout
Next wks
End Sub

--
HTH...

Jim Thomlinson


"Tim Richards" wrote:

I would like to print the worksheets in a workbook based upon whether the
user has entered data on that sheet. So in a 5 page workbook, depending on
the data entered, the workbook will print (selected worksheets based on this
criteria) pages 1,2,5 or 1,3,4,5 etc. Excel will print selected sheets, I
just need to have these sheets selected based upon cell entry(data present on
a particular sheet). I looked thru the formulas, and considered a macro, but
I couldn't find a criteria to base the macro on.
Any ideas?

Thanks in advance to all.

 
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
Sum sheets based on criteria npop03 Excel Worksheet Functions 5 July 22nd 09 09:58 PM
Min/Max based on criteria (2 sheets) Jean-Francois Gauthier Excel Worksheet Functions 1 December 17th 08 07:20 PM
Using VBA select sll sheets based on Criteria on each sheet. AirgasRob Excel Discussion (Misc queries) 4 September 3rd 08 03:11 PM
Selecting rows based on criteria JCP Excel Discussion (Misc queries) 3 April 5th 06 09:26 AM
Selecting a criteria range over two sheets? Lord_Ilpalazo Excel Discussion (Misc queries) 1 July 29th 05 07:05 PM


All times are GMT +1. The time now is 03:59 AM.

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"