Run and export to Excel the general ledger of all companies at once

We have several individual companies in SAGE.  I would like to export the general ledger detail from each company, at once, into one large excel file. Currently, I go into each company and export the data manually and it is very time consuming. 

Is this possible? 

Thank you