Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hey guys, I have a test in a cell that examines if 2-29-xxxx (where xxxx is year of choice) resolves to a month number of 3 or 2 which is a way of determining a leap year. After such a test, I want to hide or unhide a row in two different worksheets in a workbook. So the script would test the value of the cell where I resolve a logical for the leap year (or that can be done in the macro as well, no?), and then based on that test, hide or unhide one row in the February worksheet, and the annual worksheet. This has the effect of auto-magically adjusting the charts that refer to these two sheets, which is a lot easier than trying to dynamically adjust both the charts and the sheets. So, the hiding and unhiding IS the right way to go, unless you have some kind of "Ignore Row" function for the data or the chart. :-) I previously assigned a hide and unhide button and tied it to a macro segment, in those two sheets. That works, but it still requires the user to perform the hide/unhide operation while knowing or after reading the conditional leap year test results cell contents. I guess I need an "IF "such and such" is true, THEN hide row such and such in sheet such and such, and hide row such in such in other sheet such and such, ELSE UNhide yada yada yada. This is the sheet, minus the macros: http://office.microsoft.com/search/r... 101436151033 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
HIDE-UNHIDE VBA MACRO | Excel Programming | |||
hide/unhide macro | Excel Discussion (Misc queries) | |||
hide/unhide row macro | Excel Programming | |||
hide/unhide macro | Excel Programming | |||
Hide/Unhide Macro bug | Excel Programming |