Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Protect Sheet with Marcro | Excel Worksheet Functions | |||
Marcro recroding/ stop Ikon not appearing in middle of excel sheet | Excel Discussion (Misc queries) | |||
Marcro to copy sheet out of workbook | Excel Programming | |||
Running of a Macro when Workbook is opened | Excel Programming | |||
Running a macro when a Wb is opened | Excel Programming |