In xl2003 menus.
Tools|Macro|Record new macro
Type in: Aut
pen
in the macro name
and choose to store macro: "in this workbook"
You'd end up with code that would probably work--but may fail some times.
Instead of that, how about using this:
Option Explicit
Sub Aut
pen()
Dim wks As Worksheet
Dim RngToFilter As Range
Dim LastRow As Long
Dim LastCol As Long
'change the name to what you need.
Set wks = Worksheets("SheetNameHere")
With wks
'remove any existing filter arrows
.AutoFilterMode = False
LastRow = .Cells(.Rows.Count, "A").End(xlUp).Row
LastCol = .Cells(1, .Columns.Count).End(xlToLeft).Column
Set RngToFilter = .Range("A1", .Cells(LastRow, LastCol))
RngToFilter.AutoFilter field:=1, Criteria1:="In Progress", _
Operator:=xlOr, Criteria2:=""
End With
End Sub
You'll have to put the code into your workbook's project. And change the name
of the worksheet.
You'll notice that I removed any existing filter arrows and applied them where I
wanted--just in case someone was doing something with MY <vbg> data!
I also determined the range to filter by looking at entries in column A and row
1. If you have to use a different column or row, change those lines with
..end(xlup) and .end(xltoleft).
And I filtered from A1
lastcol)(lastrow) looking for "in progress" or empty (to
match your posts).
If you're new to macros:
Debra Dalgleish has some notes how to implement macros here:
http://www.contextures.com/xlvba01.html
David McRitchie has an intro to macros:
http://www.mvps.org/dmcritchie/excel/getstarted.htm
Ron de Bruin's intro to macros:
http://www.rondebruin.nl/code.htm
(General, Regular and Standard modules all describe the same thing.)
Macros will have to be enabled when the user opens the workbook.
And if you're using xl2007, make sure you save it as a workbook that can contain
macros (.xls or .xlsm or .xlsb (I think)).