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
-
Reviewing your licensing options
by
Susan Bradley
2 hours, 39 minutes ago -
Apple has been analyzing your photos since September 2024
by
B. Livingston
51 minutes ago -
What Windows 11 24H2 offers beyond bugs
by
Lance Whitney
34 minutes ago -
Making sense of Settings in Windows 11
by
Simon Bisson
5 hours, 38 minutes ago -
Windows 11 pro fails to log in after upgrading Win 10 pro to Win 11 pro 24h2
by
ben_sitaud
7 hours, 18 minutes ago -
23H2 / 24H2 / Local v. Microsoft Account.
by
CWBillow
10 hours, 14 minutes ago -
YouTube Ad Blocker Blocker
by
bbearren
1 hour, 47 minutes ago -
Obscure historical facts about Windows
by
Cybertooth
14 hours, 16 minutes ago -
Microsoft Backup
by
Linda2019
6 hours, 59 minutes ago -
What is the best notepad++ version for W7?
by
Picky
17 hours, 8 minutes ago -
What are right steps to move MS 365 Office+OneDrive files from PC to iMac?
by
glnz
1 day ago -
How to move existing MS 365 Office with OneDrive files from PC to new iMac
by
glnz
1 day ago -
How to move MS 365 files (some on OneDrive) from PC to iMac
by
glnz
1 day, 19 hours ago -
Microsoft adding Quick Machine Recovery to Windows 11
by
Alex5723
1 day, 19 hours ago -
Microsoft vs Passwords
by
Alex5723
1 day, 3 hours ago -
Windows 11 Insider Preview build 26200.5516 released to DEV
by
joep517
1 day, 23 hours ago -
Windows 11 Insider Preview build 26120.3653 (24H2) released to BETA
by
joep517
1 day, 23 hours ago -
Two March KB5053606 updates?
by
Adam
1 day, 16 hours ago -
MS Edge Not Updating to v134.0.3124.95 (rel. 27-Mar-2025)
by
lmacri
1 day, 17 hours ago -
Intel® Graphics/Sound Driver updates for 7th-10th Gen Intel® Core™ Processor
by
Alex5723
1 day, 19 hours ago -
Is there a comprehensve way to tranfer ALL current Edge Settings into a new Edge
by
Tex265
1 day, 18 hours ago -
Transferring ALL info/settings from current Firefox to new computer Firefox
by
Tex265
1 day, 18 hours ago -
DOGE Wants to Replace SSA 60 Million Line COBOL Codebase in Months
by
EyesOnWindows
20 minutes ago -
KB5051989 Usb printer Post Ipp
by
licencesti
2 days, 11 hours ago -
Removing bypassnro
by
Susan Bradley
10 hours, 14 minutes ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
1 day, 15 hours ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
16 hours, 37 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
2 days, 20 hours ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
2 days, 16 hours ago -
Still version 23H2?
by
WSbxcfilm
2 days, 21 hours ago
Recent blog posts
Key Links
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.