Changing footnote format

M

Marty Dignard

I am using Word 2007 on one machine and Word 2003 on another, so I hope there is an answer for both.

Right now, when I insert a footnote, it is superscript. I see that it is relatively easy to change it to regular script; however, I need it to also have a period after it. I do not know how to change the format so that it will always put a period after the number in the footer--without having a period after the number in the main text.

I saw an article somewhere that said you could do this with a macro, and I tried copying the macro, but it didn't work. (Of course, I didn't really know what I was doing, either.)

So, I want the footnote number in the text to still look normal, like it presently does, but the footnote number in the footer to be regular (instead of superscript) and to be immediately followed by a period.

Thanks


Submitted via EggHeadCafe - Software Developer Portal of Choice
C# / SQL Server 2000 Documentation
http://www.eggheadcafe.com/tutorial...5b0-4fb9176251a9/c--sql-server-2000-docu.aspx
 
D

Doug Robbins - Word MVP

See the article "What do I do with macros sent to me by other newsgroup
readers to help me out?” at:

http://www.word.mvps.org/FAQs/MacrosVBA/CreateAMacro.htm

Here is a modification of a macro that I created some years ago that will
insert a period after the number.

' Macro created 29/09/99 by Doug Robbins to replace endnotes with textnotes
at end of document
'
Dim aendnote As Endnote
For Each aendnote In ActiveDocument.Endnotes
ActiveDocument.Range.InsertAfter vbCr & aendnote.Index & “.” & vbTab
& aendnote.Range
aendnote.Reference.InsertBefore "a" & aendnote.Index & "a"
Next aendnote
For Each aendnote In ActiveDocument.Endnotes
aendnote.Reference.Delete
Next aendnote
Selection.Find.ClearFormatting
Selection.Find.Replacement.ClearFormatting
With Selection.Find.Replacement.Font
.Superscript = True
End With
With Selection.Find
.Text = "(a)([0-9]{1,})(a)"
.Replacement.Text = "\2"
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchWildcards = True
End With
Selection.Find.Execute Replace:=wdReplaceAll


--
Hope this helps.

Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.

Doug Robbins - Word MVP, originally posted via msnews.microsoft.com

in message news:[email protected]...
 
K

Klaus Linke

I am using Word 2007 on one machine and Word 2003 on another, so I hope
there is an answer for both.

Right now, when I insert a footnote, it is superscript. I see that it is
relatively easy to change it to regular script; however, I need it to also
have a period after it. I do not know how to change the format so that it
will always put a period after the number in the footer--without having a
period after the number in the main text.

I saw an article somewhere that said you could do this with a macro, and I
tried copying the macro, but it didn't work. (Of course, I didn't really
know what I was doing, either.)

So, I want the footnote number in the text to still look normal, like it
presently does, but the footnote number in the footer to be regular
(instead of superscript) and to be immediately followed by a period.

Thanks


Hi Marty,

You can run the macro
ActiveDocument.Footnotes.NumberStyle=wdListNumberStyleOrdinal
to set the numbering style to ordinals.

Some numbering styles aren't available from the footnote/endnote dialog.
Word seems to choose which ones are shown depending on the language support
you have installed, and offer those that are customary for these languages.

Regards,
Klaus
 
K

Klaus Linke

ActiveDocument.Footnotes.NumberStyle=wdListNumberStyleOrdinal

Oops, by the time I figured out the code and wrote the reply, I forgot that
you wanted it differently in the text and the footnote area.
The above code will give you superscripted ordinals for both if you can live
with that...
Word does not allow for different styles.

For that you'd need Doug's macro. Though I'd probably try (hard) to live
with Word's limitation, since it's difficult to maintain documents with lots
of "manually" formatted foot-/endnotes.

Regards,
Klaus
 

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