converting html-tagged text to footnotes

D

Doug Robbins

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


--
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
 
M

Moshe Wisnefsky

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top