![]() |
#2
|
||||
|
||||
![]()
Maybe something like
Code:
Sub Macro1() Dim oRng As Range Dim strText As String Dim i As Long Set oRng = ActiveDocument.Range i = 1 With oRng.Find Do While .Execute(FindText:="\[\[(*)\]\]", _ MatchWildcards:=True, _ ReplaceWith:="\1") ActiveDocument.Footnotes.Add oRng, CStr(i), oRng.Text i = i + 1 oRng.Collapse 0 Loop End With lbl_Exit: Set oRng = Nothing Exit Sub End Sub
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
Tags |
footnotes, vba |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
amz | Word | 1 | 11-18-2015 01:56 PM |
![]() |
glggluig | Word | 1 | 08-10-2014 04:09 AM |
Putting text in color shapes | dianabanana | Word | 1 | 04-07-2014 08:07 PM |
![]() |
Leandro | Office | 2 | 03-01-2012 11:51 PM |
Selecting the macro document | lars | Word VBA | 0 | 08-19-2010 06:06 AM |