Thread: if statement
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
JLGWhiz JLGWhiz is offline
external usenet poster
 
Posts: 3,986
Default if statement

Sub hahaMacro()
If LCase(ActiveSheet.Range("A5").Value) = "fixed" Then
Rows("5:13").Select
Selection.EntireRow.Hidden = True
End If
End Sub


"hshayhorn" wrote:

I would like help writing some code that would run the code below if the
value of cell a5 is the word "Fixed".

Rows("5:13").Select
Selection.EntireRow.Hidden = True