ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Headers (https://www.excelbanter.com/excel-programming/367611-headers.html)

Frank E

Headers
 
Is there a way to use an IF statement in the Header? For example could I
change the Header based on a "X" in a certain cell?

Allan P. London, CPA

Headers
 
Frank,

The answere is Yes.

Select TOOLS|Macros

Turn your record macros on.

Enter a header, then turn record macros off.

Now you have captured the code to create headers.

Go to the VBA editor and use some IF-Then code to insert the header you
want, or the named range of the header you want.




"Frank E" wrote in message
...
Is there a way to use an IF statement in the Header? For example could I
change the Header based on a "X" in a certain cell?





All times are GMT +1. The time now is 02:23 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com