Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Temporary Footer?

I Call the following routine early in a NewMonth() Sub to print out a list
of those folks who are absent the entire month before continuing the
NewMonth() routine:

Sub FilterAbsent()
Dim cell As Range
Application.ScreenUpdating = False
Sheets(5).Activate
With ActiveSheet.UsedRange
..Rows.Hidden = False
For Each cell In .Columns(28).SpecialCells(xlCellTypeFormulas)
If cell.Value 0 Then cell.EntireRow.Hidden = True
Next cell
End With
ActiveSheet.PrintPreview '<-- I click the Print button in the dialog
Cells.Rows.Hidden = False
End Sub

Is there a way to apply a Footer to appear on this page and then make it go
away before NewMonth() continues?

--
David
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 31
Default Temporary Footer?

David wrote

I Call the following routine early in a NewMonth() Sub to print out a
list of those folks who are absent the entire month before continuing
the NewMonth() routine:

Sub FilterAbsent()
Dim cell As Range
Application.ScreenUpdating = False
Sheets(5).Activate
With ActiveSheet.UsedRange
.Rows.Hidden = False
For Each cell In .Columns(28).SpecialCells(xlCellTypeFormulas)
If cell.Value 0 Then cell.EntireRow.Hidden = True
Next cell
End With
ActiveSheet.PrintPreview '<-- I click the Print button in the dialog
Cells.Rows.Hidden = False
End Sub

Is there a way to apply a Footer to appear on this page and then make
it go away before NewMonth() continues?


Never mind. I opted to replace some text in an existing cell and then put
it back:
Range("C1") = "Absent Entire Month"
ActiveSheet.PrintPreview
Range("C1") = "ATTENDANCE"

--
David
Reply
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
Temporary Files Christoph Excel Programming 1 February 18th 05 01:37 PM
Calculating a Temporary Average Gail Gurman Excel Discussion (Misc queries) 4 January 25th 05 06:32 PM
Calculating a Temporary Average Gail Gurman Excel Discussion (Misc queries) 0 January 24th 05 08:06 PM
Temporary Userform ExcelMonkey[_15_] Excel Programming 1 January 23rd 04 09:47 PM
Landscape Orientation when Footer set using mso-footer-data Disappear Vish[_2_] Excel Programming 0 November 14th 03 09:28 PM


All times are GMT +1. The time now is 06:56 PM.

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"