V
Vivek
Hi,
I'm trying to run the code below to download a csv file from a stock exchange site. Url:
http://www.nse-india.com/content/historical/EQUITIES/2008/FEB/cm19FEB2008bhav.csv
-------------------------------------------
Sub NSEDownloadCSVFile()
Dim bhavcsv As String
Dim path As String
Dim fs As Object
bhavcsv = "cm19FEB2008bhav" & ".csv"
path = "C:\"
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFile "//www.nse-india.com/content/historical/EQUITIES/2008/FEB/" & bhavcsv, path
End Sub
-------------------------------------------
I get an error :
Path not found (Error 76)
I put the above url in Firefox & IE and the csv comes along without any issues.
Any ideas what's happening here?
Any useful feedback will be appreciated.
Thanks,
Vivek
I'm trying to run the code below to download a csv file from a stock exchange site. Url:
http://www.nse-india.com/content/historical/EQUITIES/2008/FEB/cm19FEB2008bhav.csv
-------------------------------------------
Sub NSEDownloadCSVFile()
Dim bhavcsv As String
Dim path As String
Dim fs As Object
bhavcsv = "cm19FEB2008bhav" & ".csv"
path = "C:\"
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFile "//www.nse-india.com/content/historical/EQUITIES/2008/FEB/" & bhavcsv, path
End Sub
-------------------------------------------
I get an error :
Path not found (Error 76)
I put the above url in Firefox & IE and the csv comes along without any issues.
Any ideas what's happening here?
Any useful feedback will be appreciated.
Thanks,
Vivek