Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default I want to incorporate an IF statement in my XL footer

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
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
how to incorporate a clustered stacking chart Edward 6558 Charts and Charting in Excel 1 February 6th 06 02:45 PM
How to incorporate and display % in Column chart? suvransu Charts and Charting in Excel 1 September 13th 05 10:57 AM
How to make =MAX(IF incorporate "less than"? Alison Excel Worksheet Functions 3 August 9th 05 06:48 PM
How do I incorporate 2 columns into 1 column mayhewvb Excel Discussion (Misc queries) 3 June 16th 05 03:10 AM
How to incorporate Loop feature Jim May Excel Discussion (Misc queries) 4 December 16th 04 11:41 PM


All times are GMT +1. The time now is 02:58 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"