R
richardconers
I have a large number of files saved as htm or html documents. These
files (saved from the web with internet explorer as the browser) each
contain zillions of hyperlinks (which I don't need) and zillions of
embedded tables and other strange formatting. Ideally, I'd like to be
able to read the infomation in the files and store the information in
Access (I am very proficient in Access VBA).
When I use Word to open the files, it takes forever for the document to
open, and even then, the information is basically unreadable because
the table configurations are incredibly screwed up. The same thing
happens when I copy from the web browser (internet explorer) and paste
into Word. I have also used getfromclipboard method, however, that
does not seem to preserve the columns, so the information is all
smashed together.
Is there any way to use VBA (without first opening the file via the
Word application) to
1) to open a web file as a web file [when i look at the
filescriptingobject in the vba help, it doesn't look like it has a file
open command)
2) use regular VBA commands such as setting range objects, collecting
information into string variables etc from this open web file ?
For example, if the web page is the only Internet Explorer file open,
can VBA "access" that window/screen? How can use (in VBA) something
like "Find" to find the data I'm looking for, and then move from column
to column reading the information?
Or what new language <sigh> do I have to learn to be able to do this
with web pages on the internet?
thank you!!!
files (saved from the web with internet explorer as the browser) each
contain zillions of hyperlinks (which I don't need) and zillions of
embedded tables and other strange formatting. Ideally, I'd like to be
able to read the infomation in the files and store the information in
Access (I am very proficient in Access VBA).
When I use Word to open the files, it takes forever for the document to
open, and even then, the information is basically unreadable because
the table configurations are incredibly screwed up. The same thing
happens when I copy from the web browser (internet explorer) and paste
into Word. I have also used getfromclipboard method, however, that
does not seem to preserve the columns, so the information is all
smashed together.
Is there any way to use VBA (without first opening the file via the
Word application) to
1) to open a web file as a web file [when i look at the
filescriptingobject in the vba help, it doesn't look like it has a file
open command)
2) use regular VBA commands such as setting range objects, collecting
information into string variables etc from this open web file ?
For example, if the web page is the only Internet Explorer file open,
can VBA "access" that window/screen? How can use (in VBA) something
like "Find" to find the data I'm looking for, and then move from column
to column reading the information?
Or what new language <sigh> do I have to learn to be able to do this
with web pages on the internet?
thank you!!!