+ Reply to Thread
Results 1 to 4 of 4

How To Download multiple pdf from website directory to local path

  1. #1
    Registered User
    Join Date
    07-11-2014
    Location
    chennai
    MS-Off Ver
    6
    Posts
    2

    How To Download multiple pdf from website directory to local path

    Hi All, This is Raj,
    I am beginner in macro could you please any one help me how to download multiple pdf from website directory to save local path

    This is try it..
    Option Explicit

    'API function declaration for both 32 and 64bit Excel.
    #If VBA7 Then
    Private Declare PtrSafe 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
    #Else
    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
    #End If

    Sub DownloadFiles()

    '--------------------------------------------------------------------------------------------------
    'The macro loops through all the URLs (column C) and downloads the files at the specified folder.
    'The characters after the last "/" of the URL string are used to create the file path.
    'If the file is downloaded successfully an OK will appear in column D (otherwise an ERROR value).
    'The code is based on API function URLDownloadToFile, which actually does all the work.
    Please Login or Register  to view this content.
    Last edited by vlady; 07-13-2014 at 11:04 PM.

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello krraj,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166
    Hello krraj,

    Welcome to Excelforum. Be a part of large Excel community. Enjoy Learning.

  4. #4
    Registered User
    Join Date
    07-11-2014
    Location
    chennai
    MS-Off Ver
    6
    Posts
    2

    Re: How To Download multiple pdf from website directory to local path

    Thank you arlu201. could you please help me for above topic.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel VBA get Network path from local path
    By katto01 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-26-2013, 11:31 AM
  2. Download images from a list of urls (in excel sheet) to my local disk
    By anto888 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2012, 04:02 AM
  3. [SOLVED] Local Directory File Access
    By Alejandro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-31-2006, 06:35 PM
  4. Accessing local workstation's TEMP directory
    By Frederick Chow in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2006, 01:45 PM
  5. [SOLVED] Local excel file to update website
    By Anonymous Chief in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-16-2005, 10:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1