Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 08-10-2013, 05:16 PM
excelledsoftware excelledsoftware is offline Can command Advanved Filter do without selecting header(i.e. just process cells)? Windows 7 64bit Can command Advanved Filter do without selecting header(i.e. just process cells)? Office 2003
IT Specialist
 
Join Date: Jan 2012
Location: Utah
Posts: 455
excelledsoftware will become famous soon enough
Default

Quote:
Originally Posted by Aquinax View Post
Yeah, but I wouldn't even know what makes Excel behave one time this way (first row of data treated as part of data) and at another time differently (i.e. the first row is regarded as header).
Testing this code it automatically assigns the first row as header and does not prompt you. Assign this macro to a button. Then select the header and run the macro. It should display just the unique records. Let me know what you think or if you want code that will automatically copy and paste it to a new location.
Code:
Sub UniqueFilter()
 
' Code to automatically select entire list of data
' and advance filter the unique records in place.

    Range(Selection, Selection.End(xlDown)).Select
    Selection.AdvancedFilter Action:=xlFilterInPlace, Unique:=True
 
End Sub
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
In Excel 2007-After Selecting Visibe Cells-How do I "Copy to Visible cells" Only mag Excel 0 10-28-2012 08:04 PM
automating a repetitive process vthomeschoolmom Excel Programming 1 02-28-2012 07:41 PM
Can command Advanved Filter do without selecting header(i.e. just process cells)? Selecting blank cells in criteria apolloman Excel 6 08-24-2011 05:38 AM
Can command Advanved Filter do without selecting header(i.e. just process cells)? filling multiple cells whislt using Filter VinceO Excel 1 05-09-2011 06:38 AM
Configuration process problem Dunn2009 Outlook 0 10-02-2009 02:38 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:17 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft