+ Reply to Thread
Results 1 to 2 of 2

Download Data from Web Site

  1. #1
    Registered User
    Join Date
    10-31-2009
    Location
    S
    MS-Off Ver
    Excel 2003
    Posts
    25

    Smile Download Data from Web Site

    I have to download sales spreadsheets from a Costco Web Site everyday but is become a very tedious task. I know I could create a macro in Excel and download the data with a web query. The issue here is that I have to sign in to the website everytime and also that there is a certificate that Costco forces you to use for security reasons which will run after you sign in and will popo up a window that you have to close by clicking the OK button.
    I want to be able to click a button in excel that will transfer the sales data into an excel sheet without me having to type in my username and password everytime and clicking the "ok" to the certificate window that appears every time.

    Would anyone please help me with this?

    Thanks

    Moroformat

  2. #2
    Valued Forum Contributor
    Join Date
    05-21-2009
    Location
    Great Britain
    MS-Off Ver
    Excel 2003
    Posts
    550

    Re: Download Data from Web Site

    You could use IE automation and the MSHTML library to handle the username and password login, however both would have to be stored in your VBA code or the workbook, so presenting a security risk. MSHTML manipulation might be able to prevent the pop-up window appearing, if not SendKeys might work. Then use URLDownloadToFile to download the spreadsheet files. Search Google etc. for the terms mentioned.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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