Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
Need some help automating a daily task of mine - downloading a zip file from a stock exchange site and saving it to disk. Here are the steps involved: Browse to http://www.bseindia.com/mktlive/bhavcopy.asp Click on the link : "Download file in csv format (Zipped)" Alternatively, the file can be directly downloaded in which case the url would be http://www.bseindia.com/bhavcopy/eq<ddmmyy_csv.zip Of course ddmmyy would be replaced by date chosen by me. Save zip to folder C:\abcd Would be grateful for suggestions. Cheers... Vivek |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub test()
MyDate = Format(Date, "DDMMYY") ZipFile = "eq" & MyDate & "_csv.zip" Set fs = CreateObject("Scripting.FileSystemObject") ' fs.CopyFile "//www.bseindia.com/bhavcopy/" & ZipFile, "c:\abcd\" End Sub "Vivek" wrote: Hi, Need some help automating a daily task of mine - downloading a zip file from a stock exchange site and saving it to disk. Here are the steps involved: Browse to http://www.bseindia.com/mktlive/bhavcopy.asp Click on the link : "Download file in csv format (Zipped)" Alternatively, the file can be directly downloaded in which case the url would be http://www.bseindia.com/bhavcopy/eq<ddmmyy_csv.zip Of course ddmmyy would be replaced by date chosen by me. Save zip to folder C:\abcd Would be grateful for suggestions. Cheers... Vivek |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Joel,
Thanks for the code, works well for me :) Vivek "Joel" wrote in message ... Sub test() MyDate = Format(Date, "DDMMYY") ZipFile = "eq" & MyDate & "_csv.zip" Set fs = CreateObject("Scripting.FileSystemObject") ' fs.CopyFile "//www.bseindia.com/bhavcopy/" & ZipFile, "c:\abcd\" End Sub "Vivek" wrote: Hi, Need some help automating a daily task of mine - downloading a zip file from a stock exchange site and saving it to disk. Here are the steps involved: Browse to http://www.bseindia.com/mktlive/bhavcopy.asp Click on the link : "Download file in csv format (Zipped)" Alternatively, the file can be directly downloaded in which case the url would be http://www.bseindia.com/bhavcopy/eq<ddmmyy_csv.zip Of course ddmmyy would be replaced by date chosen by me. Save zip to folder C:\abcd Would be grateful for suggestions. Cheers... Vivek |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code for file download | Excel Programming | |||
Download zip file & extract/open excel file | Excel Programming | |||
How to write a micro to download file at a URL save the file at the local PC | Excel Programming | |||
how do i download again i have key code | Excel Discussion (Misc queries) | |||
Code to do a Web-download | Excel Programming |