#1   Report Post  
Gezgin
 
Posts: n/a
Default Footnotes

That is a really nifty macro, Klaus. Thanks for posting it. It seems to
have one problem however: I want the asterisk-format footnotes to restart
on each page, otherwise one ends up with strings of asterisks that become
too long. This macro doesn't restart the numbering on a new page even
though that option is selected in the footnote menu.

Can this be fixed?

Thanks again for your help.

Bob


  #2   Report Post  
Klaus Linke
 
Posts: n/a
Default

[ macro to change autonumbered footnotes to footnotes *, **, ***, ****, ... and
back]

"Gezgin" wrote:
That is a really nifty macro, Klaus. Thanks for posting it. It seems to
have one problem however: I want the asterisk-format footnotes to
restart on each page, otherwise one ends up with strings of asterisks
that become too long. This macro doesn't restart the numbering on a
new page even though that option is selected in the footnote menu.

Can this be fixed?



Hi Bob,

Sure, see macro below.

You may have to fix your asterisk footnotes a lot (= run macro twice to change
to autonumbered and back).

Since an asterisk footnote like ***** takes more space than a simple footnote,
the text might reflow and even force that footnote to the top of the next page,
so the macro isn't 100% reliable.

Regards,
Klaus


Sub ToggleAsteriskFootnotes()
Dim myFootnote As Footnote
Dim boolCustom As Boolean
Dim i As Long, iOld As Long
' first footnote reference = "*" ?
boolCustom = _
(AscW(ActiveDocument.Footnotes(1).Reference.Text) = 42)
If boolCustom = True Then
For i = ActiveDocument.Footnotes.Count To 1 Step -1
Set myFootnote = ActiveDocument.Footnotes(i)
myFootnote.Range.Copy
myFootnote.Reference.Select
myFootnote.Delete
ActiveDocument.Footnotes.Add Selection.Range
Selection.Footnotes(1).Range.Paste
ActiveDocument.Footnotes(i).Reference.Font.Name = _
ActiveDocument.Styles(wdStyleFootnoteReference).Fo nt.Name
Next i
Else
For i = ActiveDocument.Footnotes.Count To 1 Step -1
ActiveDocument.Footnotes(i).Reference.Select
Selection.start = ActiveDocument.Bookmarks("\page").start
iOld = Selection.Footnotes.Count
Set myFootnote = ActiveDocument.Footnotes(i)
myFootnote.Range.Copy
myFootnote.Reference.Select
myFootnote.Delete
ActiveDocument.Footnotes.Add _
Range:=Selection.Range, _
Reference:=String(iOld, "*")
Selection.Footnotes(1).Range.Paste
ActiveDocument.Footnotes(i).Reference.Font.Name = _
ActiveDocument.Styles(wdStyleFootnoteReference).Fo nt.Name
Next i
End If
End Sub


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
Law & Footnotes Formatting Long Documents 1 February 19th 05 04:34 PM
why do i have two sets of footnotes? Gus Microsoft Word Help 1 January 13th 05 03:35 PM
how do i use footnotes and footers together? Tom The Appraiser Page Layout 2 January 12th 05 09:40 PM
How do you view only footnotes and/or make a list of footnotes? Secretary short on time. Microsoft Word Help 2 December 28th 04 09:50 PM
footnotes with multiple sections dcn1396 Microsoft Word Help 3 December 20th 04 01:47 AM


All times are GMT +1. The time now is 03:35 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"