Vba Macro to save file on folder

msqueiros

New Member
Joined
May 24, 2016
Messages
1
I'm starting to learn how to work with VBA Macros and I'm in a point that a can't move on, So I have an excel workbook with some user and pass from a website, in my macro a read that values and navigate to that website using IE, after the login a want to download a pdf file, that file is generated after pressing a button
HTML on that button:
Code:
<code><input class="tB" value="Emitir" *******="javascript:obterFormulario()" type="button"></code>
VBA to open pdf in a new window

Code:
<code>objIE.Navigate "javascript:obterFormulario('','')"</code>
I already try to use URLDownloadToFile but my pdf dont have a url or i cant find it If you guys can help me I really appreciate
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".

Forum statistics

Threads
1,215,232
Messages
6,123,765
Members
449,121
Latest member
Vamshi 8143

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top