Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #7  
Old 11-18-2015, 04:35 AM
omar omar is offline Arrange shortest to longest sentence in Word Windows 7 64bit Arrange shortest to longest sentence in Word Office 2003
Novice
Arrange shortest to longest sentence in Word
 
Join Date: Nov 2015
Posts: 5
omar is on a distinguished road
Default

You made my day Paul, people like you make computer idiots like me live easier. I will try your new Macro and will feedback to you, you have solved 95% of my problems. Thank you very much. omar

Quote:
Originally Posted by macropod View Post
The sort is based on the number of characters on each line. If you change to a fixed-width font you'll see that. Note that some lines also have the same number of characters. If you want to sort on the basis of the string widths on each line, change:
Code:
.Cell(i, 2).Range.Text = Len(.Cell(i, 1).Range.Text)
to:
Code:
.Cell(i, 2).Range.Text = .Cell(i, 1).Range.Characters.Last.Previous.Information(wdHorizontalPositionRelativeToPage)
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto scheduling issue - longest task first? Project_64 Project 3 01-25-2016 01:14 PM
Arrange shortest to longest sentence in Word Delete does not bring second sentence closer to first sentence Andoheb Word 29 07-03-2014 01:48 PM
Arrange shortest to longest sentence in Word First word of sentence IF and then awolf Word VBA 7 03-16-2014 02:40 PM
Arrange shortest to longest sentence in Word Undo Arrange All in Word nineball Word 1 10-11-2013 12:36 PM
I want to lock a sentence in Word smorkette Word 1 02-06-2010 12:57 AM

Other Forums: Access Forums

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