A family of Microsoft word processing software products for creating web, email, and print documents.
The macro would have worked in Word 2013 as it stood originally - but you overlooked the instruction at the top of the macro
Sub CopyCommentsToExcel()
'Create in Word vba
'set a reference to the Excel object library
Dim xlApp As Excel.Application
Dim xlWB As Excel.Workbook
The macro uses early binding to Excel, so you have to set a reference to the Excel object library to provide the command set. You alternative uses Late Binding so does not need the reference, and in the code example there are no Excel specific instructions so it will work without further changes.