Thread: [Solved] Sort by String Length
View Single Post
 
Old 11-01-2021, 01:50 PM
macropod's Avatar
macropod macropod is offline Windows 10 Office 2016
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

Cross-posted at: Sort by String Length and Sort by String Length
For cross-posting etiquette, please read: Excelguru Help Site - A message to forum cross posters

To do the sorting, you need to temporarily add a column to the table and add the string lengths to that, before sorting via the added column. For some code that does most of what you need, see: vba - How can I sort a word table by specific string, which is a time like HH:MM inside each line of the first column - Stack Overflow
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote