From the Book "M is for (Data) Monkey", here is the correct means to record a Macro to Refresh
Start Recording
Name the Macro Refresh and store it in This Workbook
Go to Data-->Connections-->Power Query-Transactions-->Refresh
Click Close
Stop Recording