When I try to run a web query on the URL you provided, Excel (2002 SP-3) refuses to import any data. Do others experience the same?
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
import from web (2000 rs 1)
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » import from web (2000 rs 1)
- This topic has 11 replies, 5 voices, and was last updated 19 years, 9 months ago.
Viewing 3 reply threadsAuthorReplies-
WSBrooke
AskWoody Lounger -
WSsal21
AskWoody LoungerJune 10, 2005 at 7:33 am #952593http://www.capitalmarket.com/bulletin/bsebhav.asp?var=A
i have this link site
In this site are present many data in table-format.
Each page is identify from a letter from A to Z
I would want to import for each letter site the value present in the related page and put the data into a sheet…
My idea …. but only this i am not an expert:
Put into a sheet SERVICE into column A yhe letter from A to Z and cycling with a for next the url:http://www.capitalmarket.com/bulletin/bsebhav.asp?var= & letter present in column A of sheet SERVICE
and put the data into sheet TABLE
Can you help me?
Please very important for me.
TIA. -
WSJezza
AskWoody Lounger -
WSBAN
AskWoody Lounger -
WSHansV
AskWoody Lounger -
WSsal21
AskWoody LoungerJune 10, 2005 at 6:18 pm #952841Hans and other friends…
Look here:
Sub Importer_tableauPageWeb()
‘MichelXld le 09.06.2005
‘
‘activate Microsoft HTML Objects Library
‘activate Microsoft Internet Controls
‘
Dim IE As InternetExplorer
Dim maPageHtml As HTMLDocument
Dim Htable As IHTMLElementCollection
Dim maTable As IHTMLTable
Dim j As Integer, i As Integer, x As Integer, Ligne As Integer
Dim NbPages As ByteApplication.ScreenUpdating = False
For NbPages = 65 To 90
Ligne = 0
Sheets.Add After:=Worksheets(Worksheets.Count)
ActiveSheet.Name = Chr(NbPages)Set IE = CreateObject(“InternetExplorer.Application”)
IE.Visible = False
IE.navigate “http://www.capitalmarket.com/bulletin/bsebhav.asp?var=” & Chr(NbPages)
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
LoopSet maPageHtml = IE.document
Set Htable = maPageHtml.getElementsByTagName(“table”) ‘objet type tableFor x = 2 To Htable.Length – 1
Ligne = Ligne + i + 1Set maTable = Htable(x)
For i = 1 To maTable.Rows.Length ‘each row in table
For j = 1 To maTable.Rows(i – 1).Cells.Length ‘each cell in row
Cells(Ligne + i, j) = maTable.Rows(i – 1).Cells(j – 1).innerText
Next jNext i
Next xDoEvents
Set IE = Nothing
Next NbPagesApplication.ScreenUpdating = True
End SubLie this code?
-
WSHansV
AskWoody Lounger -
WSsal21
AskWoody LoungerJune 10, 2005 at 7:08 pm #952853Ok, finaly i have a code…
But not is wat i want;-(1) insert in only one sheet named TABELLA all record refered from each lettere of link.
2) insert the records start from A2
3) insert into A1 the name of first record, into B1 the name of the second records…
4) not import a blank line, and insert up the record of the variuos letter linkOny this little modify;-)
-
WSHansV
AskWoody Lounger -
WSsal21
AskWoody Lounger -
WSHansV
AskWoody LoungerJune 10, 2005 at 7:42 pm #952863Sal,
Here is a variation on Michel’s code that imports everything into the TABLE worksheet. After the import, you must run another macro that removes the lines you don’t want. We have given you lots of macros that do similar things in the past, you should be able to write this one yourself.
Sub Importer_tableauPageWeb()
‘MichelXld le 09.06.2005
‘activate Microsoft HTML Objects Library
‘activate Microsoft Internet ControlsDim IE As InternetExplorer
Dim maPageHtml As HTMLDocument
Dim Htable As IHTMLElementCollection
Dim maTable As IHTMLTable
Dim j As Integer, i As Integer, x As Integer, Ligne As Integer
Dim NbPages As Byte
Dim ws As WorksheetApplication.ScreenUpdating = False
Set ws = Worksheets(“TABLE”)
Ligne = ws.Range(“A65536”).End(xlUp).RowFor NbPages = 65 To 90
i = 1
Set IE = CreateObject(“InternetExplorer.Application”)
IE.Visible = False
IE.navigate “http://www.capitalmarket.com/bulletin/bsebhav.asp?var=” & Chr(NbPages)
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
LoopSet maPageHtml = IE.document
Set Htable = maPageHtml.getElementsByTagName(“table”) ‘objet type tableFor x = 2 To Htable.Length – 1
Ligne = Ligne + i + 1
Set maTable = Htable(x)
For i = 1 To maTable.Rows.Length ‘each row in table
For j = 1 To maTable.Rows(i – 1).Cells.Length ‘each cell in row
ws.Cells(Ligne + i, j) = maTable.Rows(i – 1).Cells(j – 1).innerText
Next j
Next i
Next xDoEvents
Set IE = Nothing
Next NbPagesApplication.ScreenUpdating = True
End Sub
-
-
-
-
Viewing 3 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Europe Seeks Alternatives to U.S. Cloud Providers
by
Alex5723
2 hours, 39 minutes ago -
Test post
by
Susan Bradley
4 hours, 53 minutes ago -
Used Systems to delete Temp files Gone WRONG what does this mean?
by
Deo
6 hours, 34 minutes ago -
SSD shuts down on its own
by
CWBillow
2 hours, 14 minutes ago -
OneDrive File Sharing Changes
by
David Clark
14 hours, 37 minutes ago -
OneDrive File Sharing Changes
by
David Clark
16 hours, 41 minutes ago -
Win 10 Pro 22H2 to Win 11 Pro 23H2 Conversion Guide
by
doneager
4 hours, 25 minutes ago -
Today is world backup day
by
Alex5723
8 hours, 18 minutes ago -
Windows .exe on Mint
by
Slowpoke47
18 hours, 14 minutes ago -
Reviewing your licensing options
by
Susan Bradley
3 hours, 59 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
13 hours, 17 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
8 hours, 34 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
4 hours, 31 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
14 hours, 31 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
12 hours, 17 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
12 hours, 28 minutes ago -
Obscure historical facts about Windows
by
Cybertooth
14 hours, 6 minutes ago -
Microsoft Backup
by
Linda2019
5 hours, 50 minutes ago -
What is the best notepad++ version for W7?
by
Picky
13 hours, 20 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
1 day, 22 hours ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
1 day, 22 hours ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
2 days, 17 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
2 days, 18 hours ago -
Microsoft vs Passwords
by
Alex5723
1 hour, 43 minutes ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
2 days, 21 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
2 days, 21 hours ago -
Two March KB5053606 updates?
by
Adam
2 days, 15 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
2 days, 15 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
2 days, 18 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
2 days, 17 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.