![]() |
#10
|
|||
|
|||
![]()
Hi,
I want to sort the fields from Descending to Ascending by a string length (Largest to smallest) before replacing on the target document, i had applied the below command but its not working can anyone review this... Below highlighted is inserted in the above code if anything wrong please rectify.. .Text = Split(Tbl.Cell(r, 2).Range.Text, vbCr)(0) .Replacement.Text = Split(Tbl.Cell(r, 3).Range.Text, vbCr)(0) .SortOrder=wdSortOrderDescending .Execute Replace:=wdReplaceAll For Reference : 2 Smart Ways to Sort a Column of Texts by Length in Your Word - Data Recovery Blog Last edited by ranjan; 08-31-2021 at 10:32 AM. Reason: Add: Sort by a length (large to small) |
Tags |
merging of colums |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Daedalus | Word | 1 | 05-11-2015 07:37 AM |
![]() |
Wants_It_Simple | Word | 1 | 06-30-2014 10:26 PM |
![]() |
Preloader | Word | 13 | 10-19-2013 09:39 PM |
Fields/Colums in folders | cilimpuli | Outlook | 1 | 03-10-2013 12:20 PM |
![]() |
bubbleboi | Word | 3 | 11-13-2009 01:19 AM |