Home |
Search |
Today's Posts |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
forgot to paste sample code. Tom just notified me of my mistake.
Sub ConvertCSV() Const Sourcefile = "c:\temp\Origin.csv" Const Destfile = "c:\temp\Destination.csv" Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 3 Set OriginCSV = _ CreateObject("Scripting.FileSystemObject") Set FOrigin = _ OriginCSV.GetFile(Sourcefile) Set FSOrigin = _ FOrigin.OpenAsTextStream _ (ForReading) Set DestinationCSV = _ CreateObject("Scripting.FileSystemObject") DestinationCSV.CreateTextFile Destfile Set DestinationCSV = DestinationCSV. _ GetFile(Destfile) Set FSDestination = DestinationCSV. _ OpenAsTextStream _ (ForWriting) Do While FSOrigin.ATENDOFSTREAM = False InputString = FSOrigin.readline Else 'Loop until no more characters in line First = True Do While Len(InputString) 0 'enter your code here Loop End If Loop FSOrigin.Close FSDestination.Close End Sub "alfred" wrote: Hi, I have 1,000 html fairly short html files, which I want to extract into a spreadsheet. The html were originally generated from a template, but there are about 3 different types of template within the 1000 files. Is it possible to write a script that will extract all the data from within the html files, and put everything between the tags into a cell. I am not concerned about retaining the html tags, but need to extract all the info into excel, so i can manipulate, and regenerate the html....any hepl appreciated! Thanks |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Links to html files in Excel? | Excel Discussion (Misc queries) | |||
Combining multiple Excel files into one html? | Excel Programming | |||
Combining multiple Excel files into one html? | Excel Programming | |||
Combining multiple Excel files into one html? | Excel Programming | |||
Automatic Downloading of files (PDF or HTML) using Excel | Excel Programming |