LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default autofilter problem

Hello.,
When I try to extract data from sheet like this
A B C .... M
9 145 a1
10 145 abc
11 146 def
12 146 hij

With ActiveSheet
lLastRow = .Cells.SpecialCells(xlCellTypeLastCell).Row
Set rng = Range("A1", Cells(lLastRow, "M"))
rng.AutoFilter field:=2, Criteria1:="146", VisibleDropDown:=False
rng.SpecialCells(xlCellTypeVisible).Copy
End With

The range include one row of '145', how can I ignore it, the sheet
comes without header but even with header the extracted data come with
the header line.

Thankes
Roni Peled

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PROBLEM WITH AUTOFILTER OMIDF New Users to Excel 1 August 18th 06 05:41 PM
AutoFilter VBA Problem Michael Link Excel Discussion (Misc queries) 1 July 28th 06 04:41 PM
autofilter problem Karmen New Users to Excel 0 February 15th 06 01:43 PM
Autofilter problem Jake Excel Worksheet Functions 1 July 5th 05 12:12 PM
AutoFilter Problem longbow Excel Programming 3 November 24th 03 06:35 AM


All times are GMT +1. The time now is 02:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"