![]() |
|
#1
|
|||
|
|||
![]()
Dim sTemp As String
With Selection.Find .ClearFormatting .Text = "\C*\C" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .MatchWildcards = True End With Do While Selection.Find.Execute sTemp = Selection.Text sTemp = Mid(sTemp, 2, Len(sTemp) - 2) sTemp = Trim(sTemp) Selection.Text = "" Selection.MoveEnd Unit:=wdCharacter Selection.MoveStart Unit:=wdCharacter, Count:=-1 If Selection.Text = " " Then Selection.Text = " " Selection.Collapse ActiveDocument.Comments.Add Range:=Selection.Range, Text:=sTemp Loop |
#2
|
|||
|
|||
![]()
I have used this macro for comments
If the last line of this macro can be changed so that it can select the text from the footnote and comment it with the footnote number in the text, my problem will be solved. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Customize footnote reference marks without losing automation | RobiNew | Word VBA | 0 | 12-20-2023 01:53 AM |
![]() |
TheBigBoss | Word VBA | 5 | 06-10-2022 06:14 AM |
![]() |
emblaw | Word | 4 | 12-08-2020 06:23 AM |
![]() |
jaanross | Word | 5 | 02-06-2020 12:04 AM |
![]() |
NoCalScribe | Word VBA | 3 | 07-15-2019 07:20 PM |