Dear Will Hall
This might happen if you have the Excel open. If that is the case, additional contents cannot be written to an open file. I am using the following three coding lines and their contents are reflected in the Excel file
asdocx sum, save(myfile.xlsx) replace
asdocx cor
asdocx reg price mpg rep78 headroom trunk