+ Reply to Thread
Results 1 to 2 of 2

Chosing a file from a popup using VBA

  1. #1
    Registered User
    Join Date
    04-04-2012
    Location
    london, england
    MS-Off Ver
    Excel 2010
    Posts
    4

    Chosing a file from a popup using VBA

    Hey guys,

    I am running into a brick wall and could really do with some advice. I have a problem with this website.

    https://doubleclick-support.appspot.com/validator/

    when you go on this site it asks you to choose a file. From there you select your file and press enter.

    Where I’m getting stuck is that I already have the file location in excel and I want VBA to automatically select the file instead of me having to do it manually. Unfortunately, I can’t seem to work out how to handle this so it automatically selects the file.

    So far I have created the IE object and got the page to load, from there I trigger the button using ie.document.all.file.Click . But from here onwards I’m stuck, the select file box opens but I have no idea how to handle it.

    Any ideas on how this could be done?

    Many Thanks,

    Michael

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

    Re: Chosing a file from a popup using VBA

    You could automate the file upload by using/adapting the code at http://www.motobit.com/tips/detpg_post-binary-data-url/.

    Flash files are binary data so you'll need the code from http://www.motobit.com/tips/detpg_uploadvbsie/ to build the binary form data.
    Post responsibly. Search for excelforum.com

+ 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