Importing a xlsx from a url into google sheets - excel

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.

Related

Google Sheets: Import only certain tab downloadable xlsx link?

This is the file in question, https://dshs.texas.gov/coronavirus/TexasCOVID-19HospitalizationsOverTimebyTSA.xlsx
This is a hosted xlsx which I've used a solution similar to this one.
However, this xlsx file has grown rather large and now getting 414 "Request too large". I really am only concerned with one tab in the original xlsx file.
Does anyone know of a way to parse the xlsx file prior to upload to grab a single sheet?

Using VBA To Gather Zipped Files From A Website, Open Them, Extract Excel Files and Copy Them Into Excel

I am currently trying to extract an excel file from a website and upload it into an excel worksheet using VBA. The link to where the data can be found is at the following link:
http://mis.ercot.com/misapp/GetReports.do?reportTypeId=12301&reportTitle=Settlement%20Point%20Prices%20at%20Resource%20Nodes,%20Hubs%20and%20Load%20Zones&showHTMLView=&mimicKey
The issue I am facing is that the excel files are located within Zip files. I eventually would like to use VBA to download all of the zip files found at that link and compile all of the excel files they contain into one single worksheet, but for now I just want to download one file.
If you can help me use VBA to download the first zip file included in the link listed above, open the zip file, extract the excel file from the zip file, extract the data from the excel file, and paste that data into another excel worksheet, I would really appreciate it.
Thank you for taking the time to help me with this issue!

Unable to get the file name of excel from a folder using VBA

I am doing a web scraping project using excel VBA. So the code open the webpage and after few navigation and clicks, an .CSV file is downloaded to the downloads folder. Now I need a VBA code to open that .CSV file. The downloads folder will always be empty and as I will delete all the files present before initiating the code. I am using selenium and Firefox for automation. I cannot change any other browser as the portal is restricted for other browsers. I believe Firefox does not open .CSV file automatically once downloaded. I have searched for the same here but all I see is to get the list of file names from a folder, instead I need .CSV file name to be added in a string or variant so I could work with it.

Automatically converting Excel Files to Google Sheets

I have a google account that uses the save emails and attachments add-on.
https://chrome.google.com/webstore/detail/save-emails-and-attachmen/nflmnfjphdbeagnilbihcodcophecebc?hl=en
The email account only receives excel sheets as attachments, and those are saved to a specific folder automatically.
Is it possible to have those sheets converted automatically to google sheets upon save (or after save). Currently, I have to open the file with google sheets to convert it.
I have tried setting the folder to Convert uploaded files to Google Docs editor format, but that doesn't work for this.
Any suggestions would be greatly appreciated.
Eric
if you're wishing to do this with the Drive API, then you can do so using the examples given in Upload Files, see the section headed Importing to Google Docs types. Essentially, by setting the source file MIME type to application/vnd.openxmlformats-officedocument.spreadsheetml.sheet and that of the new file to application/vnd.google-apps.spreadsheet, this indicates that the conversion is required on upload.

How to have Excel update automatically based on CSV

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.

Resources