How to have Excel update automatically based on CSV - excel

I have CSV files that will be getting automatically updated with data from another program.
In the same directory will be xlsx files with the same information. What is the best way to ensure that the updated data from the CSV automatically matches the xlsx whenever I have to open the xlsx in Excel?
The reason I can't just use CSV is because the xlsx has a custom graphical header that needs to get printed along with the data.

Related

Insert Data into Shared Excel file

I have a Shared Excel file stored on a NAS, and i want to insert some data from a csv into the Excel without the excel being unshared.
can i maybe share the excel file programmatically ?
I tried reading the excel with py pandas and then overwriting with the new inserted data,
but then the file isn't shared anymore, so my users that are still using the file won't notice the change and maybe they are going to save their current changes which would overwrite the inserted data,
i also tried using VBS but it didn't work because the excel is shared.
I'm looking for a solution which would allow my users to modify the file without overwriting the new inserted data.
is that possible ?
Thanks for your attention. I’m looking forward to any reply.

Exporting Excel file with Filters Present to a CSV File

How can you export an excel file to a .CSV file with all of the filters present on the .xlsx file applied?
I have ~1000 rows of data in an .xlsx file, but only require rows with certain criteria to be exported to the .csv file. When exporting with the filters on the row, obviously all of the data is just exported to the .csv file, not just the visible data present after the filter. I require just the filtered data, as the report is handling live data which changes, and my program can only import .csv files due to internal policies.
Sorry this isn't quite a programming question; however the answer will be used to implement this into a programmed solution, which I am hoping to provide on this thread after it has been completed.

Importing a xlsx from a url into google sheets

In GoogleDocs, I'm trying to use an import function (e.g. =importdata) to extract data from or open an online XLSX file. An example would be the url below:
http://www.sportsbookreviewsonline.com/scoresoddsarchives/nba/nba%20odds%202015-16.xlsx
Ideally I want this to automatically upload this file everytime I open google sheets. The data comes back corrupted however it does mention a .xml location.

Sheet contents from external CSV file

I have a CSV file that is written to disk by a separate process. Instead of having to copy and paste the contents of that CSV file each time I open my spreadsheet into one of the sheets I want to see if I can automate this.
So can have the contents of an Excel sheet within my spreadsheet automatically load the contents of the CSV each time it is opened?
Import a text file by connecting to it
https://support.office.com/en-NZ/article/import-or-export-text-txt-or-csv-files-5250ac4c-663c-47ce-937b-339e391393ba#bmimport_data_from_a_text_file_by_conne
Power Query
https://support.office.com/en-nz/article/Connect-to-an-Excel-or-CSV-file-Power-Query-fc377b2e-a742-4dea-8d7c-8e0f18c8e765?ui=en-US&rs=en-NZ&ad=NZ#__importing_data_from

Converting .csv file to text file using Excel macro

Would like to ask if how to convert a .csv file generated from macro to .txt file?
I have this Excel macro that gathers data from the website and create a table and output it to a .csv file, but for some reason I wasn't able to copy its contents to an existing .csv file as it returned special characters instead of the correct output.
Please help me, with the program I am currently doing.
A csv file is a text file. U can just change the extension like this
Name "C:\\**\\a.csv" As "C:\\**\\a.txt"

Resources