yes, it's very easy to send not only 40 but 100's of millions worth of records to Excel via ODBO as long as they are persisted in a HANA database and the final Pivot Table display doesn't go over the usual limitation of 1M by 16K rows columns.
the more data is displayed in Excel the slower it will get though.