Gentlemen,
Thank you for your responses. I tried your suggestion but without success.
Perhaps if I get more specific you could give me a hand.
I am importing data from a delimited database and using aut

pen to activate the formatting macros. There is a varying field that requires different formatting depending on what is in the field. The way I would like the formula to read is:
=if(a1="Monday", Columns("B:B").Select.Selection.EntireColumn.Hidden = True, Columns("A:A").Select.Selection.EntireColumn.Hidden = True)
I realize this is combining Visual Basic with an excel formula. I just can't get the macro started and I know of no other way to hide columns automatically.
Thank You in advance for any help you can offer,
Rick