View Single Post
 
Old 09-20-2019, 12:37 PM
toddreitzel toddreitzel is offline Windows 10 Office 2016
Novice
 
Join Date: Sep 2019
Posts: 6
toddreitzel is on a distinguished road
Default

I tried this macro. I pasted it in exactly as provided except, because my footnote numbers aren't bracketed or enclosed by anything else, I changed:
.Text = "\[([0-9]{1,})\]"
to:
.Text = "([0-9]{1,})"

I also selected a group of footnotes at the bottom of a page. When I ran the macro, I got the same error message:
Run-time error '13': Type mismatch

I then clicked "debug" and it highlighted the following line in yellow: k = .Paragraphs(1).Range.Words(1) - 1

Did I do something wrong? Any advice what to try next?
Reply With Quote