![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
17/06/2008, 08:45
|
![Avatar de David](http://static.forosdelweb.com/customavatars/avatar98181_4.gif) | Moderador | | Fecha de Ingreso: abril-2005 Ubicación: In this planet
Mensajes: 15.720
Antigüedad: 19 años, 9 meses Puntos: 839 | |
Respuesta: Guardar una foto que visualizo en Excel mediante VBA Así puedes hacerlo:
Código:
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
Código:
Dim Reply As Long
Reply = URLDownloadToFile(0, "http://dirección", "C:\archivo_destino", 0, 0)
If Reply = 0 Then
'Descargado
Else
'Error al descargar
End If
|