Help with a macro please

Buns1976

Board Regular
Joined
Feb 11, 2019
Messages
194
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

The macro below is an HTML copy from a folder(file:///C:/Users/HOME/Dropbox/DAILY_SALES_REPORTS/DAY_END.HTML) and pasted to a worksheet(IMPORT_HTML). Works like a charm until the DAY_END.HTML file is overwritten which we do daily.

The way it was recorded is to open folder (file:///C:/Users/HOME/Dropbox/DAILY_SALES_REPORTS/DAY_END.HTML), select open with
Internet Explorer, select all, copy, close Internet Explorer and paste to cell A1 in worksheet(IMPORT_HTML).

Not sure what the issue is so any help would be greatly appreciated.

Thank you!!


Code:
Sub TEST_IMPORT()'
' TEST_IMPORT Macro
'


    ActiveSheet.PasteSpecial Format:="HTML", Link:=False, DisplayAsIcon:= _
        False

End Sub
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
What do you want it to do...or not do differently?
 
Upvote 0
Hi JLGWhiz,

What I just discovered is the macro is loading what was most recently copied in A1 so I am going down the wrong path. What I need is a macro
that will open the HTML in Internet Explorer, Select ALL, Copy, Close Internet Explorer and paste it in A1 in Worksheet
IMPORT_HTML.

The path to the HTML is
(file:///C:/Users/HOME/Dropbox/DAILY_SALES_REPORTS/DAY_END.HTML)

I am aware that I can import it as a linked table BUT there are 30+ tables and the workbook becomes around 5 MB and is extremely slow refreshing
so looking for a copy/paste macro.

Thank you!

 
Upvote 0

Forum statistics

Threads
1,214,599
Messages
6,120,453
Members
448,967
Latest member
grijken

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