How can I select all the footnotes reference in current page in Word VBA
- To post as a guest, your comment is unpublished.· 1 years agoHi hadi,
Sorry can help you with that. Thank you for your comment.
Kutools for Excel is a powerful add-in that frees you from performing time-consuming operations in Excel, such as combine sheets quickly, merge cells without losing data, paste to only visible cells, count cells by color and so on. 300+ powerful features / functions for Excel 2019, 2016, 2013, 2010, 2007 or Office 365!
It enables tabbed browsing, editing, and managing of Microsoft Office applications. You can open multiple documents / files in a single tabbed window, such as using the browser IE 8/9/10, Firefox, and Google Chrome. It's compatible with Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365. Demo
Kutools for Outlook is a powerful add-in that frees you from time-consuming operations which majority of Outlook users has to perform daily! It can save your time from using Microsoft Outlook 2019, 2016, 2013, 2010 or Office 365!
Kutools for Word is a powerful add-in that frees you from time-consuming operations which majority of Word users have to perform daily! It can save your time from using Microsoft Word / Office 2019, 2016, 2013, 2010, 2007, 2003 or Office 365!
Restores the old look and menus of Office 2003 to Microsoft Office 2019, 2016, 2013, 2010, 2007 or Office 365. Don’t lose time in finding commands on the new Ribbon. Easy to deploy to all computers in enterprises and organizations.
Normally, when selecting the whole Word document with Ctrl + A keys, all footnotes will be excluded from the selection. If you just want to select all footnotes in the document, how can you do? This article provides three methods for you to solve this problem.
You can use the hotkey Ctrl + A to select all footnotes at once in a Word document. Please do as follows.
Click to put your cursor at any footnote of your document, press the Alt + A keys simultaneously, then all footnotes in current document are selected immediately.
The Select Text with Similar Formatting feature can help to select all footnotes in a document.
1. Click to put your cursor at any footnote of your document.
2. In the Home tab, click Select > Select All Text With Similar Formatting. See screenshot:
Then all footnotes in current document are selected immediately.
The following VBA code can also help to select all footnotes in a document at the same time. Please do as follows.
1. In the document you will select all footnotes, press the Alt + F11 keys to open the Microsoft Visual basic for Applications window.
2. In the Microsoft Visual Basic for Applications window, click Insert > Module, then copy below VBA code into the Module window. See screenshot:
VBA code: Select all footnotes in a Word document
Sub SelectAllFootnoteTexts() Dim xDoc As Document Dim xRange As Range Set xDoc = ActiveDocument If xDoc.Footnotes.Count > 0 Then Set xRange = xDoc.Footnotes(1).Range xRange.WholeStory xRange.Select End If End Sub
3. Then press the F5 key to run this code. All footnotes in current document are selected at once.