Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Private Sub Workbook_BeforePrint(Cancel As Boolean)
If Worksheets("Sheet1").Range("c1").Value = "X" Then ActiveSheet.PageSetup.LeftFooter = "My message" End If End Sub 'This is workbook event code. 'To input this code, right click on the Excel icon on the worksheet '(or next to the File menu if you maximise your workbooks), 'select View Code from the menu, and paste the code change the range to suit. -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "PClantonBailey" wrote in message ... For example, if the value of a certain cell is "X," I want a specific message to appear in the page footer; otherwise, the message will not appear. How can I incorporate this IF statement into my footer? -- PClantonBailey |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how to incorporate a clustered stacking chart | Charts and Charting in Excel | |||
How to incorporate and display % in Column chart? | Charts and Charting in Excel | |||
How to make =MAX(IF incorporate "less than"? | Excel Worksheet Functions | |||
How do I incorporate 2 columns into 1 column | Excel Discussion (Misc queries) | |||
How to incorporate Loop feature | Excel Discussion (Misc queries) |