Automate button pop pap save web page in Internet explorer

LuisOrtin

New Member
Joined
Mar 27, 2020
Messages
27
Office Version
  1. 2019
Platform
  1. Windows
I have a macro that has the following code:

Set objPic = ActiveSheet.Pictures.Insert ("C: \ Temp \ INPI_files \ LogoMarcasServletController")

Every time he runs I have to confirm manually by clicking the save button and then confirm save as by clicking the yes button.

Is it possible to altomatize this?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
1586058575527.png
 

Attachments

  • 1586058508932.png
    1586058508932.png
    153 KB · Views: 3
Upvote 0
I'm sorry I was tired yesterday, the code that triggers is:

IE.ExecWB 4, 1, "C:\Temp\inpi.html", ""

The problem is that the confirmations appear to overwrite the file.
 
Upvote 0
With solution I created a script that is very simple to do. Just paste the code below into a Notepad and save it with nomequanquer.vbs. When you click on it, it searches the dialog box every 20 seconds and clicks the save button. Note: It is running straight, do not forget to close it when you are not using it. Again it is not ideal but at least it saves the fingers rs. (I'm a layman, I close it through the task manager).

VBA Code:
Set ClickSalvar = createobject("wscript.shell")

Do
   ClickSalvar.AppActivate "Salvar"
   wscript.sleep 500
   ClickSalvar.sendkeys ("%(l)")
   wscript.sleep 20000
loop
 
Upvote 0

Forum statistics

Threads
1,215,014
Messages
6,122,697
Members
449,092
Latest member
snoom82

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