Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following macro that I want to run when cell M9 equals either
"AR1" or "AR2". Is this possible? thanks! Sub Macro7() If Range("M9").Value = "AR1" Then Rows("60:89").Select Selection.EntireRow.Hidden = False Rows("90:112").Select Selection.EntireRow.Hidden = True Else Rows("90:112").Select Selection.EntireRow.Hidden = False Rows("60:89").Select Selection.EntireRow.Hidden = True End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
If a cell equals then macro | Excel Programming | |||
If a cell equals _, at the next row that equals _, return value fr | Excel Worksheet Functions | |||
if a:a (range) equals january and c:c equals gas then add g:g ($) | Excel Worksheet Functions | |||
how to run a macro when a calculation equals a certin number | Excel Worksheet Functions | |||
custom filter does not work when selecting 'equals' X AND 'equals' | Excel Discussion (Misc queries) |