How to open html file from a folder and get the area tags

Jaan C

New Member
Joined
Aug 27, 2013
Messages
3
Hi,

I am not very familiar with
<acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(0, 0, 0); cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym>, and still on the learning curve. I am using Excel 2007 on Windows 7.

I am looking for <acronym title="visual basic for applications" style="border-width: 0px 0px 1px; border-bottom-style: dotted; border-bottom-color: rgb(0, 0, 0); cursor: help; color: rgb(51, 51, 51); background-color: rgb(250, 250, 250);">VBA</acronym> code for a button in excel that does the following:

a.
Test the active worksheet and make sure it is a diagram or nested style.
b. Test if this particular worksheet's test file exists. If it doesn't then fail out because creating it is useless. The whole point is to take updated info from that file. If we create it then nothing is updated (filename = Globals.userFolder & "\test\" & Trim(s.Cells(1, 3)) & ".html")
c. If it exists then Open test file for reading, Read line at a time and do something with strText to process all <area> tags get id, shape, and coords attributes from tag.
d. Find matching cell in worksheet. Include some logic to iterpolate which matching hotspot is correct in the event that there are multiple hotspots with the same name.
e. Use the old and new coordinates to see which are closer.
d. Update shape and coords cells for that row and close.

Note: I have already a button in excel which creates html files taking data from the excel under the folder : Globals.userFolder & "\test\".

Thanks in advance. Please let me know if something is unclear.
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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