![]() |
#1
|
|||
|
|||
![]()
So I am trying to clean up and format a 450 page book containing 1300 footnotes. Normally I would do this in QuarkXPress, but time contraints mean I have to just clean it up in word and create a PDF for print.
All footnotes are formatted as #[space]Footnote text. I need it to be #.[tab]Footnote text. Trying to use the insert footnote dialogue to format the numbering causes Word to insert new footnote numbers in addition to the ones already there. Is there any way to do a search for and replace using some sort of tag? LIke searching for "[paragraph break][footnote number][space]" and replacing it with "[paragraph break][footnote number].[tab]"? Best regards Geir Rosset Oslo Norway |
#2
|
||||
|
||||
![]()
You could use a macro like:
Code:
Sub Demo() Application.ScreenUpdating = False Dim FtNt As Footnote For Each FtNt In ActiveDocument.Footnotes With FtNt.Range.Characters.First.Previous If .Text = " " Then .Text = vbTab End With Next Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
|||
|
|||
![]()
Yes. That is almost perfect. How do I get the period [.] in there in front of the tab. Sorry, I don't know the syntax for word macros.
|
#4
|
||||
|
||||
![]()
Word doesn't insert a period as part of the footnote number, so where is it coming from? Can you attach a document to a post with some representative content (delete anything sensitive)? You do this via the paperclip symbol on the 'Go Advanced' tab at the bottom of this screen.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#5
|
|||
|
|||
![]()
No it doesn't, but I need one. Like this: [Footnote number].[tab][Footnote text]. So in your macro I need it to insert a period in front of vbTab. Could it say: If .Text = " " Then .Text = "."vbTab?
|
#6
|
||||
|
||||
![]()
OK, you could just change:
.Text = vbTab to: .Text = "." & vbTab but, if you want the period superscripted to match the footnote #, you'll need to replace: If .Text = " " Then .Text = vbTab with: Code:
If .Text = " " Then .Font.Superscript = True .Text = "." & vbTab End If
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
Tags |
footnotes, formatting problem |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Macro to find text only footnote numbers | TimFromPhx | Word VBA | 7 | 04-10-2014 07:05 PM |
Editing the whole Bible and accounting for all changes as footnotes + footnote index | alexs | Word | 0 | 09-08-2013 09:36 PM |
Formatting a table with double borders | qwertyas | PowerPoint | 2 | 05-02-2012 05:10 AM |
Footnote Sequence, with asterisk, dagger, double dagger | DBinSJ | Word | 3 | 01-02-2012 07:48 PM |
automatically extract footnotes into new file and apply character format to footnote | hrdwa | Word | 0 | 02-27-2010 03:16 AM |