#16
|
|||
|
|||
Sorry I can't help you with that, because I was the one that gmayor helped up above in this thread. Maybe they'll swoop in and help you. Good luck. |
#17
|
|||
|
|||
Great
Quote:
Is it possible to keep text formatting like Bold and font type & etc??? |
#18
|
|||
|
|||
text formatting lost
Quote:
text formatting like bold & etc lost! |
#19
|
||||
|
||||
If the text formatting is coming from the underlying paragraph style then you won't get it but local character formatting will be preserved by this modification.
Code:
Sub Macro1() Dim oRng As Range, oFN As Footnote, rngInner As Range Set oRng = ActiveDocument.Range With oRng.Find Do While .Execute(FindText:="\[\[(*)\]\]", MatchWildcards:=True) Set oFN = ActiveDocument.Footnotes.Add(oRng, , oRng.Text) Set rngInner = oRng.Duplicate rngInner.MoveStart Unit:=wdCharacter, Count:=2 rngInner.MoveEnd Unit:=wdCharacter, Count:=-2 oFN.Range.FormattedText = rngInner.FormattedText oRng.Text = "" Loop End With lbl_Exit: Set oRng = Nothing Set rngInner = Nothing Exit Sub End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#20
|
|||
|
|||
perfect
thanks a lot
|
#21
|
|||
|
|||
Quote:
Thank you very much, I have another problem. I have a number of comments in the text, which will be deleted by moving the text to the footnote. Is there a way to move those comments, for example, to the footnote number in the main text and not delete them? |
Tags |
footnotes, vba |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word 2013 does not search text in footnotes unless I first click in a footnote | amz | Word | 1 | 11-18-2015 01:56 PM |
word 2007 - footnotes and text box | glggluig | Word | 1 | 08-10-2014 04:09 AM |
Putting text in color shapes | dianabanana | Word | 1 | 04-07-2014 08:07 PM |
Putting text to Excel | Leandro | Office | 2 | 03-01-2012 11:51 PM |
Selecting the macro document | lars | Word VBA | 0 | 08-19-2010 06:06 AM |