A Microsoft Office (Excel, Word) forum. OfficeFrustration

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.

Go Back   Home » OfficeFrustration forum » Microsoft Word » Page Layout
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

converting html-tagged text to footnotes



 
 
Thread Tools Display Modes
  #1  
Old July 11th, 2004, 11:32 AM
Doug Robbins
external usenet poster
 
Posts: n/a
Default 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  
Old July 11th, 2004, 12:10 PM
Moshe Wisnefsky
external usenet poster
 
Posts: n/a
Default 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  
Old July 12th, 2004, 11:52 PM
Moshe Wisnefsky
external usenet poster
 
Posts: n/a
Default 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

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


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


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.