Posted to microsoft.public.excel.misc
|
|
How do I automatically hide columns?
I was looking to do the same (but with the dates at the start of rows). I
have tried this bit of code but how do I get it to actually run?
"Don Guillett" wrote:
try
Sub findtoday_hidecolsafter()
x = Rows(2).Find(Date).Column + 1
Range(Cells(1, x), Cells(1, Columns.Count)).Columns.Hidden = True
End Sub
--
Don Guillett
SalesAid Software
"PPM at Brackmills" <PPM at wrote in
message ...
I have a table with dates as the top row. I want Excel to find todays date
and then hide the columns after todays date. In this way I can make the
printed output bigger and more readable.
|