Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Andy
 
Posts: n/a
Default Autofilter is Repeating

Sorry for getting back so late, but i will try to describe the layout better.

Column 'R' is my Lamptype column; Cell R1 is blank, Cell R2 is the heading
"LAMP TYPE",cells R3 & R4 are blank. Cells R5 and down are all my lamps. I
"LAMPTYPE"(Used in the formula/macro) defined in cells R5 and down to
automatically offset one cell down so i dont have to update list all the time.

Now i would like to use the advanced autofilter to move all the unique
lamptypes, w/o repeating them, into column T starting on cell T5. So the list
of lamptype should start on T5 and go down.

When it sorta works the first couple cells are the same, and the result is
that extracting point repeats the first row. If the first couple cells are
different then i get a error message "The extract range has a missing or
illegal field name"

I am going to give my old school email out in hope you can email me back so
i can then email you back the spreadsheet i am creating.

My old school email is

"tjtjjtjt" wrote:

Try deleting the entire extract range and then run the macro again. If that
doesn't work, please describe the layout and the steps more thoroughly.

--
tj


"Andy" wrote:

Thanks guys, it makes sense but now i am getting a error that says "The
extract range has a missing or illegal field name"

"tjtjjtjt" wrote:

One more thought. If your Named Range does not include a Column Heading,
Excel is reading the top value in the list as a column heading. So it's not
exactly repeating - it's showing up as the Column Header and as an item in
the column.

--
tj


"Andy" wrote:

Alright here is a stumper for me, hopefully you guys can help. What i have is
a list of lamptypes and how many they are per light fixture. Then i want to
sum all of them to a summary column. I have the columns with sumif's to add
only the particular lamptype chosen. What i am trying to do is use the
advancefilter in a macro.
What i want is when i get done with my huge list of lamptypes is have the
macro pick up all the unique types and display them in a list. The problem
that is occuring is that the first lamp always repeats itself for some
reason.

Here is the VB Macro script:

Sub Macro1()
'
' Macro1 Macro
' Macro recorded 12/14/2005 by Andrew Slater
'
' Keyboard Shortcut: Ctrl+Shift+L
'
Range("LAMPTYPE").AdvancedFilter Action:=xlFilterCopy,
CopyToRange:=Range( _
"AB5"), Unique:=True
End Sub

I can also send you a copy of the spreadsheet if you can really help me.
Just attach an email with your post.

Andy

Reply
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
Frozen panes in Excel should stay put when using autofilter. stuckfly Excel Discussion (Misc queries) 8 March 10th 06 06:18 PM
How to format two repeating XML elements w/o getting list of list jimmyray32 Excel Discussion (Misc queries) 0 November 10th 05 03:17 PM
Using AutoFilter with worksheet protection in 2000 vs. 2003 gncook Excel Discussion (Misc queries) 3 July 25th 05 08:02 PM
Can I AutoFilter an entire workbook? Matrix015 Excel Discussion (Misc queries) 0 January 18th 05 02:51 PM
Strange Results with Autofilter Joyce Excel Discussion (Misc queries) 1 January 17th 05 02:42 AM


All times are GMT +1. The time now is 10:02 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"