B
BenTarnowski
I have a simple Excel spreadsheet with two worksheets. I want to hide a
block of columns on Sheet 2 if there is text (e.g. a date) in a cell on
Sheet 1.
For example if Sheet1!A2 has a date in it, then hide or show columns A
through D on Sheet 2. The block of columns on Sheet 2 is centered
around a date I would like to compare to the date in the cell on Sheet
1. I've made it so columns A though D are headed by the date in
Sheet1!A2. I thought this might help if I needed data for a conditon.
For example if columns A through D were for the dates 1/1/06 through
1/15/06, and there was no date in Sheet1!A2, columns A through D would
be shown. Else, if Sheet1!A2 was greater than or equal to 1/15/06,
columns A through D would be hidden and instead columns E through H on
Sheet 2 would be shown. This would repeat down the line for the next
set of dates and columsn, 1/16/06 through 1/31/06 and columns E through
H and I through L.
Is this lunacy or can this be done is reasonable fashion without
breaking out the FORTRAN book? I'm no VB or VBA guy but this sounds
like it needs a macro.
Somebody lend this crazy Pollack a hand!
Ben Tarnowski
(e-mail address removed)
block of columns on Sheet 2 if there is text (e.g. a date) in a cell on
Sheet 1.
For example if Sheet1!A2 has a date in it, then hide or show columns A
through D on Sheet 2. The block of columns on Sheet 2 is centered
around a date I would like to compare to the date in the cell on Sheet
1. I've made it so columns A though D are headed by the date in
Sheet1!A2. I thought this might help if I needed data for a conditon.
For example if columns A through D were for the dates 1/1/06 through
1/15/06, and there was no date in Sheet1!A2, columns A through D would
be shown. Else, if Sheet1!A2 was greater than or equal to 1/15/06,
columns A through D would be hidden and instead columns E through H on
Sheet 2 would be shown. This would repeat down the line for the next
set of dates and columsn, 1/16/06 through 1/31/06 and columns E through
H and I through L.
Is this lunacy or can this be done is reasonable fashion without
breaking out the FORTRAN book? I'm no VB or VBA guy but this sounds
like it needs a macro.
Somebody lend this crazy Pollack a hand!
Ben Tarnowski
(e-mail address removed)