LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 82
Default How do you importing unicode from web

You could try this.

Sub test()

Set IE = CreateObject("InternetExplorer.Application")
With IE
.Visible = True
.Navigate "http://www.fallingrain.com/world/FR/a/A/b/"
Do Until .ReadyState = 4: DoEvents: Loop

Set doc = IE.Document
GetOneTable doc, 2, Range("A1")
.Quit
End With
End Sub

Sub GetOneTable(d, n, rngDst As Range)
' d is the document
' n is the table to extract


Dim e As Object ' the elements of the document
Dim t As Object ' the table required
Dim r As Object ' the rows of the table
Dim c As Object ' the cells of the rows.
Dim I As Long
Dim J As Long

For Each e In d.all

If e.nodename = "TABLE" Then
J = J + 1
End If

If J = n Then
Set t = e

tabno = tabno + 1

For Each r In t.Rows
For Each c In r.Cells
rngDst.Value = c.innertext
Set rngDst = rngDst.Offset(, 1)

Next c

Set rngDst = rngDst.Offset(1, -rngDst.Column + 1)
Next r

Exit For

End If

Next e

End Sub
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
create csv which contains unicode archana New Users to Excel 1 May 12th 09 04:51 PM
unicode oldLearner57 Excel Discussion (Misc queries) 2 September 30th 08 06:18 AM
Importing Alan Beban's code on Arrays; Importing a module or a project Steve G Excel Worksheet Functions 4 August 27th 07 04:18 PM
Unicode Shafiee Excel Worksheet Functions 0 January 16th 06 05:21 PM
Unicode Help xcelion Excel Programming 2 August 31st 05 10:29 AM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"