Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I need to download with vba a zip file from the web and then extract/ open the spreadsheet (data.xls) in it. How can I do that ? I guess something like this: TaskID = Shell("C:\WINZIP\WINZIP32.EXE\ " & MyFile ..... Thanks for your interest and time... Mika |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mika
See my zip pages for the unzip part http://www.rondebruin.nl/zip.htm -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Mika" wrote in message ups.com... Hi, I need to download with vba a zip file from the web and then extract/ open the spreadsheet (data.xls) in it. How can I do that ? I guess something like this: TaskID = Shell("C:\WINZIP\WINZIP32.EXE\ " & MyFile ..... Thanks for your interest and time... Mika |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Geweldig Ron !
Those functions tell me how to unzip the file once I got it, but couldn īt find first how to download the zip within excel. I canīt/donīt want to dowload it manualy but all with vba. Did I miss something in your site ? Rg Mika |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I answer this
See my zip pages for the unzip part For the download part Do you always want to save the same file from a website -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Mika" wrote in message ups.com... Geweldig Ron ! Those functions tell me how to unzip the file once I got it, but couldn īt find first how to download the zip within excel. I canīt/donīt want to dowload it manualy but all with vba. Did I miss something in your site ? Rg Mika |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Yes Ron,
It is always the same filename but the spreadsheet inside has update data every week. Rg Mika |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Mika
Never try this myself with a zip file I have done it with workbooks. I think about it tomorrow -- Regards Ron de Bruin http://www.rondebruin.nl/tips.htm "Mika" wrote in message oups.com... Yes Ron, It is always the same filename but the spreadsheet inside has update data every week. Rg Mika |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thank you,
Solved, found in the api: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0) If lngRetVal = 0 Then DownloadFile = True End Function Private Sub Form_Load() 'example by Matthew Gates ) DownloadFile "http://www.allapi.net", "c:\allapi.htm" End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I download and open a CSV file in Excel 2000? | Setting up and Configuration of Excel | |||
what do I download to open a spreadsheet file | Excel Discussion (Misc queries) | |||
want to download csv file from website and need to open in Excel. | Excel Discussion (Misc queries) | |||
What do I need to download to open a .xls file? | Excel Programming | |||
download and open excel file from outlook | Excel Programming |