Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I use the following to cycle through some sheet changes and print them:
Private Sub Worksheet_Change(ByVal Target As Range) Application.EnableEvents = False If Target.Address < "$A$1" Then Exit Sub Dim MonArr, TueArr, WedArr, ThuArr, v, i As Long MonArr = Array("Intermediate Computer", "Wellness", "Supported Employment", "Understanding Your Symptoms", "Creative Writing", "Picking Up The Pieces") TueArr = Array("LIFTT", "Wellness", "WRAP", "Sign Language", "Beginning Computer", "Anger Management") WedArr = Array("Intermediate Computer", "Wellness", "Supported Employment", "Understanding Your Medications", "WRAP", "Anger Management") ThuArr = Array("Picking Up The Pieces", "Wellness", "LIFTT", "Adult Basic Education", "Beginning Computer", "Creative Writing") Select Case Target.Value Case "Monday" v = MonArr Case "Tuesday" v = TueArr Case "Wednesday" v = WedArr Case "Thursday" v = ThuArr Case "Friday" Range("A1") = "Wellness" GoTo Units End Select For i = LBound(v) To UBound(v) ActiveSheet.Rows.Hidden = False Range("A1") = (v(i)) Select Case v(i) Case "Beginning Computer", "Intermediate Computer", "Adult Basic Education" Range("A14:A20").Rows.Hidden = True Range("E11").Value = 4 Case "Creative Writing", "Sign Language", "Picking Up The Pieces" Range("A15:A20").Rows.Hidden = True Range("E11").Value = 5 Case Else Range("E11").Value = 11 End Select ActiveSheet.UsedRange ActiveSheet.PrintOut Next i Units: Sheets(2).Visible = True With Sheets(2) ..Range("A1") = "Maintenance Signups": .PrintOut ..Range("A1") = "Food Service Signups": .PrintOut End With Sheets(2).Visible = False Application.EnableEvents = True End Sub Is there a way to suppress the box that pops up showing that a page is printing? I see it 8 separate times while this routine is executing and it would be less distracting if I didn't. -- David |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Suppress PopUp | Excel Discussion (Misc queries) | |||
How do I suppress printing a row without hiding it? | Excel Discussion (Misc queries) | |||
Suppress popup "Do you really want to save..." after open and immediate close of excel sheets ? | Excel Discussion (Misc queries) | |||
Suppress popup "Do you really want to save..." after open and immediate close of excel sheets ? | Excel Worksheet Functions | |||
suppress popup message | Excel Programming |