Access data from excel spreadsheet generated from running any transaction - excel

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.

Related

How to append one excel file as a sheet onto another excel file in alteryx

so I have about 90 different excel files that are customer reports. I have one generic excel file that's a summary page that I need to insert as a sheet into all of those other excel files. Does anyone have a way to automate this process - I'm generating the sheets through alteryx but open to solutions outside of that platform or maybe there's a simple way to do it through Excel that I'm missing.
Right now, the only option is to open each report and copy over the summary sheet and insert it that way. To do it for 90 sheets would take me over an hour so trying to shorten the time.

Dynamically filter table to another sheet in an online excel file

I have an Excel file which will be kept in SharePoint. It runs a query every 5 minutes to get data from another Excel file in which data comes regularly through power automate. This is what the table looks like:
I want to lock this sheet and get filtered data dynamically in another sheet in the same Excel file. I am trying to get all entries where "Approval Status" is "Approved".
Can we do this without using macros? I want to keep the .xlsx extension of the file.
Can you use FILTER?
=FILTER(Table1,Table1[Approval Status]="Approved")

How to download from a data source extension into excel using VBA

I have an online data source that I've linked to excel using the domo excel extension. This enables me to download data tables straight from domo into a an excel doc. My goal is to use a macro to automate the following steps:
At a 12am ET on Sunday morning, open an new excel document
Access the extension and download a data table
Save the newly populated excel table as "Data File (date)" into a specific folder.
In my limited experience with VBA, i attempted to record even just the download process from an open sheet and excel stops recording as soon as I click on the extension tab.
two-part question: First, is there a way to access the extension via my macro? If so, is it possible to schedule the desired process?
Thank you!

Outlook macro that checks if Excel macro is running

I have an Excel macro that opens Internet Explorer, searches & requests an export for each item in Column A.
The export is sent to my Outlook email and automatically filters into my Import/Export folder. At that point, when it filters into my Import/Export folder, I'd like an Outlook macro to check if the Excel macro is running, because I receive exports at other times too.
If the Excel macro is running I'd like to change/edit the subject line of the email that was just filtered to include the text from a certain HTML tag (which I have the ID for) on the current page from Internet Explorer.
** Is this possible? If you have any suggestion on a better way to go about this I'd be happy to hear it.
In Excel, just before the first export save 1 to a text file. Once all exports are done, put Excel to sleep for a short time so the mail can reach Outlook then save 0 to the text file.
In Outlook, assume Excel is requesting exports if the text file contains 1.
Edit:
Sample code for Excel How to create and write to a txt file using VBA
Sample code for Outlook: Read/Parse text file line by line in VBA

Excel UserForm data dump Into Access 2003

I am attempting to develop a user interface for people in my office that do not have ms-access on their PC. I know it can be done with Excel and a UserForm but I am having trouble with the code. I have a UserForms with TextBoxes for all relevant fields of data. I have developed an Access database with corresponding fields. My userform has command buttons to trigger the data transfer. I am struggling with the language as I have never tried this before. How is the language formatted for an Excel Userform text box to dump its data into an MS-database housed in the same folder?
Excel File is named TONUv2.xlsm, ms-Access database named TONU-9850.mdb

Resources