Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Page Layout / July 2004

Tip: Looking for answers? Try searching our database.

converting html-tagged text to footnotes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Moshe Wisnefsky - 11 Jul 2004 12:10 GMT
Hi everybody!

I have a document with citation-sources between html tags (e.g.,
<fn>Book, p. x</fn>) and I need to convert all of these to regular
footnotes. Is there a way? Or, alternatively, is there a more specific
user group I should post this message to?

Thanks,

Moshe
Doug Robbins - 11 Jul 2004 11:32 GMT
The following code in a macro will do it:

' Throw-away macro createded 7/11/2004 by Doug Robbins
'
Dim fntext As String
Selection.HomeKey wdStory
Selection.Find.ClearFormatting
With Selection.Find
   Do While .Execute(FindText:="\<fn\>*\</fn\>", MatchWildcards:=True,
Wrap:=wdFindContinue, Forward:=True) = True
       fntext = Selection.Range.Text
       fntext = Mid(fntext, 5, Len(fntext) - 9)
       Selection.Delete
       ActiveDocument.Footnotes.Add Range:=Selection.Range, Text:=fntext
   Loop
End With

Signature

Please respond to the Newsgroup for the benefit of others who may be
interested.   Questions sent directly to me will only be answered on a paid
consulting basis.

Hope this helps,
Doug Robbins - Word MVP

> Hi everybody!
>
[quoted text clipped - 6 lines]
>
> Moshe
Moshe Wisnefsky - 12 Jul 2004 23:52 GMT
Fantastic! Thanks.

>The following code in a macro will do it:
>
[quoted text clipped - 12 lines]
>    Loop
>End With
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.