Wrox Programmer Forums
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 7th, 2009, 05:10 AM
Authorized User
 
Join Date: Feb 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default deleted duplicate rows

Hi

Can someone help me to have macros that’s I wanted to deleted the duplicate Row base the value at column A2 to down, which is numbering .

Your help I high appreciated
 
Old May 7th, 2009, 07:00 AM
Friend of Wrox
 
Join Date: Sep 2005
Posts: 812
Thanks: 1
Thanked 53 Times in 49 Posts
Default

Please check if the following links helps:

Checking Duplicate values and delete rows

http://vbadud.blogspot.com/2007/08/d...excel-vba.html

http://vbadud.blogspot.com/2008/07/r...eet-using.html


Cheers
Shasur
__________________
C# Code Snippets (http://www.dotnetdud.blogspot.com)

VBA Tips & Tricks (http://www.vbadud.blogspot.com)
 
Old June 2nd, 2009, 04:52 AM
Authorized User
 
Join Date: Feb 2009
Posts: 16
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Hi, All

I have copy the code and modify as below, seem it work but, can't stop when the cell is empty.?

can u help which part's was marking wrong,

Thanks


Range("A1").Select
Do Until IsEmpty(ActiveCell)
Do While ActiveCell = ActiveCell.Offset(1, 0)
ActiveCell.EntireRow.Delete
Loop
ActiveCell.Offset(1, 0).Select
Loop
End Sub





Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete Duplicate Rows gregalb SQL Server 2005 2 March 13th, 2009 05:17 AM
How can you delete duplicate rows without using te subhasischakraborty SQL Server 2000 15 October 19th, 2007 06:51 AM
duplicate rows msrnivas Classic ASP Components 1 August 26th, 2004 02:07 AM
Detecting duplicate rows. Daniel Walker PHP Databases 6 June 21st, 2004 02:39 AM
Checking Duplicate values and delete rows ppenn Excel VBA 2 February 3rd, 2004 06:57 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.