Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Advanced Filter vs. Macro for deleting dup rows in sheet

Hello,

I've been using a macro for some time to delete duplicate rows from a
sheet, but I'm also aware of being able to delete duplicate rows the
following way:
Data=Filter=Advanced Filter and selecting the unique option in the
lower left corner.

My question is, is there an advantage of any kind in using the macro?
The sheet that we delete dups from is then used as import data and I've
heard something about problems with this because Excel hides the rows
and not actually removes them, but I couldn't see that this was
actaully happening. In any case, if someone could explain what the
advantage to a macro would be I would really appreciate it. This info
will help me offer an intelligent response to someone (*cough*) who is
asking.

Thanks in advance,
KP

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 268
Default Advanced Filter vs. Macro for deleting dup rows in sheet

The filter option does not delete the rows, it merely hides them. If the
macro deletes the rows, they stay deleted, they are gone

"Kermit Piper" wrote:

Hello,

I've been using a macro for some time to delete duplicate rows from a
sheet, but I'm also aware of being able to delete duplicate rows the
following way:
Data=Filter=Advanced Filter and selecting the unique option in the
lower left corner.

My question is, is there an advantage of any kind in using the macro?
The sheet that we delete dups from is then used as import data and I've
heard something about problems with this because Excel hides the rows
and not actually removes them, but I couldn't see that this was
actaully happening. In any case, if someone could explain what the
advantage to a macro would be I would really appreciate it. This info
will help me offer an intelligent response to someone (*cough*) who is
asking.

Thanks in advance,
KP


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Advanced Filter vs. Macro for deleting dup rows in sheet

The best is to combine the two:
Filter the sheet, then use a macro to delete the cells that are not
visible.
Maybe the Range property Specialcells(xlVisible) can be of use in this.

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
Advanced filter to another sheet goayimm Excel Discussion (Misc queries) 1 June 5th 08 03:30 AM
Advanced Filter - filter rows < jaws4518 Excel Discussion (Misc queries) 3 November 1st 06 05:48 PM
Use Advanced Filter to Detect non blank rows Connie Excel Discussion (Misc queries) 0 October 19th 06 09:40 PM
Advanced Filter to another sheet Rishi Dhupar Excel Programming 1 February 8th 06 07:29 PM
Deleting rows with Advance Filter in recorded Macro JHL Excel Programming 4 January 24th 06 07:31 PM


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