Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 01-04-2016, 06:14 PM
macropod's Avatar
macropod macropod is offline Sorting Numbers in a Document Windows 7 64bit Sorting Numbers in a Document Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

To delete duplicate rows, you could insert:
Code:
    For i = .Rows.Count To 2 Step -1
      If .Rows(i).Range.Text = .Rows(i - 1).Range.Text Then .Rows(i).Delete
    Next
after:
.Sort
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sorting Index According to Page Numbers mohsen.amiri Word 14 06-25-2015 09:50 PM
Sorting Numbers in a Document Sorting a mail merge by a specific number in the document redzan Mail Merge 4 05-17-2013 09:04 AM
How do I refer to page numbers, when the numbers change as I prepare the document? StevenD Word 5 11-29-2012 12:52 AM
Words in my document were converted to numbers???? MikeD23 Word 1 08-26-2012 11:09 AM
Sorting Numbers in a Document Sorting paragraph numbers CommDude Excel 1 01-02-2011 04:38 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:47 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