Macro to hide rows/colums by value
why a row for A4 and a column for B6?
What are your rules,
What cells should be checked.
Is this something you would do by running a macro, or do you want them to
magically hide when you enter the 1 - or is the 1 produced by calculation.
Help yourself by providing a complete explanation of what you want to do.
sub RunMe()
With Range("A4")
.EntireRow.Hidden = ( .Value = 1)
end with
With Range("B6")
.entirecolumn.Hidden = (.Value = 1)
End With
End sub
--
Regards,
Tom Ogilvy
" wrote:
HIDING
I'd like to be able to hide various rows and columns that have the
number 1 in their first position.
For example:
If A4 =1 then hide row 4.
If B6=1 then hide column B.
I'm okay with never being alble to hide row 1 or column A so there
shouldn't be any conflict/ambiguity.
UNHIDING
I'm happy to just unhide all when I need to unhide any. How can I do
that?
Would someone point me in the right direction?
Thanks for any help.
/e
|