I have to create a macro that runs a SAP transaction, enters some particular data and generates a report, and exports that report to Excel spreadsheet. This generates an Excel file named as export.xlsx
.
But I am not able to access the data of this spreadsheet unless I manually save that Excel sheet at a certain location, then open that Excel sheet and retrieve its data.
I want the VBA code to directly refer to that spreadsheet as it is automatically generated from SAP when the command "Export to Excel spreadsheet" is selected.
I have been able to code the VBA code that generates the report and select the command "Export to Excel spreadsheet".
Can anyone guide me from this point?
It will be really helpful.