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: 7
Default Autofilter always includes last line of data irrespective of filter

Hi Guys,

Sorry if this question has been asked/answered before but I couldn't
see it easily in a search.

I have a problem with autofilter in one particular worksheet, not all
of them.

In using autofilter via VBA I seem to get the last line of the
datatable irrespective of the criterion selected, i.e. in 613 rows of
dataI might get rows 34,45,67,98 which relate to my criterion but then
I get row 613 tagged on at the end. It happens for all my selections.

I've tried three different fixes and none worked

1) naming the exact range from row 5 (headers) column1 to row 613 col
22 as "dfilter1" and then using

Sheet12.Range("dfilter1").AutoFilter Field:=1, Criteria1:="Australia"

2) increasing the range dimensions to include rows beyond the last row
of data (i.e. lower row is now 615 not 613)

3) Including rows 5 to 65536 in my range name


I've also tried setting autoflter manually and still no joy.


I've never had this problem before - anyone else had it and sorted it?

Thanks

Peter

 
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
Autofilter includes extra row George Gee New Users to Excel 4 August 26th 09 12:31 AM
Import external data, data includes Excel function allen davidson Excel Worksheet Functions 0 July 4th 08 12:39 PM
Auto-filter includes too much range Atreides Excel Discussion (Misc queries) 4 May 15th 08 01:23 AM
I want to copy cell from word that includes line breaks to excel sueCBA Excel Discussion (Misc queries) 1 July 12th 06 05:10 PM
Excel 2002 - Is it possible to use Data,Filter,Autofilter as X-Axi Birmangirl Charts and Charting in Excel 5 May 1st 05 01:42 AM


All times are GMT +1. The time now is 05:59 AM.

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"