HTML copy macro creating multiple IE instances

acecard

New Member
Joined
Sep 6, 2018
Messages
8
Hi all,

I have a VBA macro that copies a HTML element from a website in an already open instance of IE; the macro operates once every minute. It seems like nearly every time the macro triggers and copies the element from the website, a new instance of IE is created in the task manager. I'm confused as to why this would happen as the code is designed to only interrogate the already open webpage and therefore there are no new pages being opened. I'm concerned about this as with each instance, the memory usage of IE goes up and as I will have my macro running for hours at a time, I imagine this could cause problems with respect to computer performance.

I don't want to be killing IE each time the code runs and then re-opening it as the whole idea behind interrogating an existing page was so that I don't lose the entries on that page, as well as the speed of operation. So, other than this, is there a way to fix this issue?

Many thanks!
A
 

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

Forum statistics

Threads
1,223,909
Messages
6,175,310
Members
452,634
Latest member
cpostell

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