I recorde a simple macro to hide all the blank cells in a sheet and pasted
into the code of a command button as follws:
Private Sub CommandButton1_Click()
Range("B6:K425").Select
Selection.AutoFilter
Selection.AutoFilter Field:=1, Criteria1:="<>"
End Sub
What I would like to do is have this macro apply when the sheet is opened
but I don't know what to enter after the 'Private Sub' bit instead of
CommandButton1_Click().
Can anyone help please.
Thanks a plenty in advance.
Bookmarks