If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
converting html-tagged text to footnotes
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 Moshe Wisnefsky wrote in message ... Hi everybody! I have a document with citation-sources between html tags (e.g., fnBook, 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 |
#2
|
|||
|
|||
converting html-tagged text to footnotes
Hi everybody!
I have a document with citation-sources between html tags (e.g., fnBook, 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 |
#3
|
|||
|
|||
converting html-tagged text to footnotes
On Sun, 11 Jul 2004 20:32:09 +1000, "Doug Robbins"
wrote: Fantastic! Thanks. 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 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change Plain Text Replies/Fowards to HTML | Sandy | General Discussion | 2 | June 4th, 2004 08:23 AM |
Edit same text in multiple locations | Angelo | Formatting Long Documents | 3 | May 19th, 2004 03:43 PM |
email submission tool for converting xls to pdf or xls to plain text ascii | Don Saklad | Links and Linking | 1 | February 29th, 2004 07:52 PM |
Text boxes-help | Jon Peltier | Charts and Charting | 0 | January 26th, 2004 05:46 PM |