HTML > CSV > XLS with External Programs in VBA?

puredeadradio

New Member
Joined
Mar 1, 2011
Messages
1
Greetings to all, I have a rather complex question that I can't seem to pin down. Basically, I'm trying to put a band-aid on a poorly designed Oracle reporting system. I'm not in IT, so I don't have access to any hard code. I only have access to the final generated report.

The only way I've found to clean up this report to something I can use is to save the generated report as an HTML file (how it's initially generated), and open the source code in Notepad and trim the top and bottom sections of code (to get rid of images, menus, etc. I then open the newly-trimmed html file in Excel (to keep the general structure) and save it as a CSV. Then I open the CSV in Notepad++ (because I can see line breaks and carriage returns) and run a find-replace macro to clean it up. I save it, then open it up in Excel again and run a series of macros to format the info, filter the results, save files based on criteria, and email the filtered results to different people.

Simply put:
1. SaveAs HTML
2. Open HTML in Notepad - Delete Header & Footer - SaveAs HTML - Close
3. Open HTML in Excel - SaveAs CSV - Close
4. Open CSV in Notepad++ - Find/Replace - SaveAs CSV - Close
5. Open CSV in Excel - Run Macros, etc.

What I'm looking to do is automate Steps 2-4. I've already got the macros for Step 5 stored in my Personal Macro Workbook, so I don't necessarily need a specific file open.

I run this report daily, so any time I can save would be awesome.

Thank you in advance for any/all assistance provided!
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

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