right, i've NEVER used MSVB before, and it's going to show when you see this...but i'm trying to make a macro to hide certain rows in excel when a button is clicked. i've got this so far: (i know it's probably completely retarded)
but i'm completely at a loss. can anyone give me a bit of help for this please, as my excel sheet's going to be all messy if i can't do this
thank you
Code:
Sub Button1_Click()
Rows("5:7").Select
If Selection.EntireRow.Hidden = False Then
Selection.EntireRow.Hidden = True
End If
End Sub
Sub Button2_Click()
Rows("5:7").Select
If Selection.EntireRow.Hidden = True Then
Selection.EntireRow.Hidden = False
End If
End Sub
but i'm completely at a loss. can anyone give me a bit of help for this please, as my excel sheet's going to be all messy if i can't do this

thank you
