View Single Post
  #11   Report Post  
Posted to microsoft.public.excel.programming
Jef Gorbach[_2_] Jef Gorbach[_2_] is offline
external usenet poster
 
Posts: 65
Default Search the column and return a cell value

Give this a shot:

Sub test()
Cells.AutoFilter field:=1, Criteria1:="a"
Cells.SpecialCells(xlCellTypeVisible).Copy _
Destination:=Worksheets("Sheet2").Range("A4")
Application.CutCopyMode = False
Cells.AutoFilter 'turn off filter
Worksheets("Sheet2").Columns("A:B").Delete 'since we only want
column(c) values
End Sub