Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text file, not msgbox

Status
Not open for further replies.

vlad123

Programmer
Jun 22, 2005
37
DE
Hi! I want to save all the content, the text, from a web site into a text file.now I can see this text in a msgbox like this:
strtext = MyIE.Document.body.innerText
MsgBox strtext
But, sometimes, if the text its too big I cant see all of it. And I need to save this in a database, so next step its to save it in a table.But, first I want to have a text file. Can someone help me?! Please!
 
Hello,
I have not tried this myself but you should be easily able to open files using the open method in VBA.There is also a write method to write strings into the file. Then there are the 'read',readline, readall methods which perform obvious functions on files.
you probably already figured this out by now.

-cheers
Ashank
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top