Hi, I'd need to download a file from a website.
It involves adding a lot of information on a website in textboxes and then clicking a submit button.
My problem is, that a download prompt comes up on the screen and I don't know how to handle it with my macro.
I've seen various posts with the same problem, and they usually try with sendkeys. I did too.
However most of the stuff is vbscript.
How do I send keys in a macro.
I tried the following:
The result was the given text, so next I tried to send just the arrowsPlease Login or Register to view this content.
Now this macro didn't do anything, when I ran it. Even though I was expecting the activecell to move three cells to the left.Please Login or Register to view this content.
Not only that, but I actually had to stop the macro because for whatever reason it was running for minutes!!!!!!
IN an extreme case this should be dealt with in 4 seconds, but I waited more than a minute and this exact macro still wasn't done.
I tried to modify it:
This didn't work either and it was stuck running like beforePlease Login or Register to view this content.
I tried this version, but it didn't compile in the first place:
So can anyone tell me, how to send the left arrow key in a vba macro?Please Login or Register to view this content.
Even better can someone tell me, how to answer a download prompt for saving an excel file?
Some people could actually make the sendkeys work for them, and the active window was the download prompt but the sendkeys would still not send the keys to that active window of the prompt!
I tackled all the hard part of pulling information from a website, and Now I'm stuck at the finish line, because I can't handle the download prompt!!!
Please help!
Bookmarks