Converting PDF or HTML to Excel

J

JLatham

Using the first link, I copied the displayed text to Notepad and saved it as
a .txt file. Then I opened Excel and used Data --> Import External Data with
settings to look for .txt, .dat & .csv type files and made sure the data
separator was a comma and it imported into Excel very nicely.
 
D

Don Guillett

First Link>right click>export to msexcel
after imported use text to columns>comma
or just use this macro to do it all for you
Sub GetExternalDataSAS()
ActiveWorkbook.Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:= _
"URL;http://204.65.203.5/public/441280noadd.pdp", _
Destination:=Range("A1"))
.WebSelectionType = xlEntirePage
.Refresh BackgroundQuery:=False
End With
Columns(1).TextToColumns Destination:=Range("A1"), _
DataType:=xlDelimited, TextQualifier:=xlDoubleQuote, _
ConsecutiveDelimiter:=False, Tab:=True, Semicolon:=False, _
Comma:=False, Space:=False, Other:=True, OtherChar:=","
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top