#1   Report Post  
Posted to microsoft.public.word.docmanagement
JR''s PROB JR''s PROB is offline
external usenet poster
 
Posts: 2
Default Sorting html code

Hi,

I have a word doc that looks like this:

a href="http://youtube.com/watch?v=jmSUKrhfd94"The Notorious B.I.G. - Big
Poppa/abr
a href="http://youtube.com/watch?v=vw0sF60mtp0"The Shins - Girl on the
Wing/abr
a href="http://youtube.com/watch?v=u0zevGYoF0c"Journey - Separate Ways
(Worlds Apart)/abr


I need to alphabetically sort the names of the songs, which are in between
the html tags, and keep them with their respective html code, so that when I
put them I put the code up on a web page the songs will be listed
alphabetically.

Is there any way this can be done?

I know if there is anyone who can do it you guy's can.

Thanks for looking at this.


  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default Sorting html code

If they are all in that fomat, select the list, replace the character with
Tab

Sort on Field 3
Remove the tab characters ie

With Selection
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = ""
.Replacement.Text = "^9"
.Forward = True
.Wrap = wdFindStop
.Format = False
.MatchCase = False
.MatchWholeWord = False
.MatchWildcards = False
.MatchSoundsLike = False
.MatchAllWordForms = False
.Execute Replace:=wdReplaceAll
End With
.Sort ExcludeHeader:=False, FieldNumber:="Field 3", SortFieldType _
:=wdSortFieldAlphanumeric, SortOrder:=wdSortOrderAscending
With .Find
.Text = "^9"
.Replacement.Text = ""
.Execute Replace:=wdReplaceAll
End With
End With

This will all fall down if some of the entries are different.

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



JR''s PROB wrote:
Hi,

I have a word doc that looks like this:

a href="http://youtube.com/watch?v=jmSUKrhfd94"The Notorious B.I.G.
- Big Poppa/abr
a href="http://youtube.com/watch?v=vw0sF60mtp0"The Shins - Girl on
the Wing/abr
a href="http://youtube.com/watch?v=u0zevGYoF0c"Journey - Separate
Ways (Worlds Apart)/abr


I need to alphabetically sort the names of the songs, which are in
between the html tags, and keep them with their respective html code,
so that when I put them I put the code up on a web page the songs
will be listed alphabetically.

Is there any way this can be done?

I know if there is anyone who can do it you guy's can.

Thanks for looking at this.



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I change the HTML code back to WYSIWYG? miggols99 Microsoft Word Help 3 October 30th 08 05:46 AM
How can I see the html code in word 2007? Lotta New Users 1 May 4th 07 05:13 PM
How do I insert HTML code in Word 2007? Bobby Microsoft Word Help 1 April 24th 07 03:53 PM
How do I take a word document and put it into html code? Cacciarito Microsoft Word Help 14 March 17th 06 07:42 PM
html code Cacciarito Microsoft Word Help 1 March 17th 06 05:24 AM


All times are GMT +1. The time now is 02:26 PM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"