How to get (download) Excel file from web service link (in VB.NET) - excel

I have a web service link: http://members.tsetmc.com/tsev2/excel/MarketWatchPlus.aspx?d=14011010&format=0 which if you paste it in your Internet Explorer, downloads an Excel file (including Tehran stock prices).
I do need help how to programmatically get above mention Excel file from that web service to save in my SQL database.
I searched a lot but non of found sample codes couldn't help to succeed (most of them cause an error or an empty file).
Kind regards.
Your help would be highly appreciated in advance.

Related

Power Automate: syncing sharepoint with google drive

I'm trying to dynamically update a file in google drive when the corresponding file with the same name is modified via SharePoint. Power Automate is being used to this.
However, I just cannot get a flow that works. Does anyone have a solution or some tips? I'd share some screenshots, but I don't think they'd be helpful.
Thank you

Reading data from shared teams text file using VBA in Excel

I have created a tool using VBA that performs several pulls from BigQuery and does a variety of transformations and summarization inside of Excel. The tool is an evolving tool and to make sure that the users are using the most current version of the tool, I would like to have a version file saved on the shared Teams page that the tool would check and if needed, download the newest version onto the tool to the user's folder. I have scrubbed the web for several solutions to this ask but not one that actually works. Below are the links to the solutions I have attempted. The issue is that the connectors for opening text files seem to not work with a URL from Teams. I need to know how to make this work. Any help would be greatly appreciated.
https://www.excel-easy.com/vba/examples/read-data-from-text-file.html
This solution doesn't seem to work with a URL as I get a Bad Filename error.
https://chandoo.org/forum/threads/download-file-from-sharepoint-and-save-it-in-system-folder.41779/
Problem with this one is that the download for some reason shows completed but actually never moves local.
Connecting to Excel file stored on SharePoint via ADODB
https://www.connectionstrings.com/textfile/
I attempted to use this solution using the text file connection string but was not successful here either.
https://www.exceltip.com/import-and-export-in-vba/import-data-from-a-text-file-ado-using-vba-in-microsoft-excel.html
Again, another bad name error.
Any help or advice on how to connect to a simple text file shared in a Teams folder would be greatly appreciated.

Open and save .iqy to table from script

I'm looking for a way to open a .iqy file from script and save the file that i get.
Context: Where I work we currently try to automate the process of renaming building elements. For those we have the properties saved in an SharePoint Excel file and we want to find a 1-Click-Solution, where a programm fetches the data from the SharePoint tables and uses ArchiCAD API to get those changes into the project.
If anyone knows a comfortable way to get the data from SharePoint (tried REST API with not much success) or the .iqy file, i would be very grateful :)
Kind Regards
Dayiz1

I am having problem reading Excel file using OData SSIS component from Share Point

as title says I am trying to read the Excel file placed on online SharePoint using the OData component in SSIS.
I am trying to make an SSIS package that will update my database in sql server with the data from that Excel file. I managed to do that when my file is placed locally.
I also managed to see my file using by adding /_vti_bin/listdata.svc/ inside target URI, i get an Share Point list where one of the components is my excel file, but I can't open it that way.
Also I need to use credentials to access the SharePoint.
I would be thankfull for any help :D
Acceptable solution would be to download that file first, but I haven't managed to do that either.

Running a PowerQuery on Google Sheet - keeps failing

I'm trying to run a PowerQuery on a work-related Google Sheet (that I can't share here) so that the data appears in Excel and refreshes when I need it to.
I have published the Google sheet to the web and gotten the link (in web format, not Excel, but this is failing no matter which file format I publish in).
I then go to Data->From Web in Excel and I paste the link to the Google Doc get this:
Query Preview
As you can see, the data isn't appearing. It should be a table with a bunch of data.
Can someone help me fix this?
When using Google's File / Publish to the web pop-up, change the 2nd setting from "Web page" to "Microsoft Excel (.xlsx)". It then builds a link that works without modification in Power Query.
FYI the best in-depth discussion on this topic is on this thread:
http://community.powerbi.com/t5/Integrations-with-Files-and/How-to-connect-google-sheet-to-Power-BI/m-p/205058#M11276
BTW if you have published your Google sheet to the web, then there shouldn't be any obstacle to sharing it here - it's already visible to anyone.

Resources