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
-
KB5051989 Usb printer Post Ipp
by
licencesti
2 minutes ago -
Removing bypassnro
by
Susan Bradley
4 minutes ago -
Up to 30 seconds to show “Recent Topics”
by
PL1
9 minutes ago -
Sound changes after upgrade from W11 23H2
by
WStaylorpsepa
43 minutes ago -
Windows bug blocks BIOS updates for Lenovo ThinkPad laptops
by
Alex5723
3 hours, 46 minutes ago -
O&O Software – ‘World Backup Day’ Sale
by
unbob
6 minutes ago -
Still version 23H2?
by
WSbxcfilm
4 hours, 34 minutes ago -
Ubuntu 25.04 (Plucky Puffin) Beta released
by
Alex5723
10 hours, 30 minutes ago -
How to install App Store apps on an external SSD
by
Alex5723
11 hours, 24 minutes ago -
Where is Windows going?
by
Susan Bradley
1 hour, 41 minutes ago -
Installing Feature Update Windows 11 24H2
by
geekdom
1 day, 4 hours ago -
Windows 11 Insider Preview build 27823 released to Canary
by
joep517
1 day, 5 hours ago -
Windows 11 Hotpatch
by
Hackmuss
12 hours, 35 minutes ago -
System Guard service error still won’t be fixed
by
Susan Bradley
1 day, 5 hours ago -
Operation ForumTroll: APT attack with Google Chrome zero-day exploit chain
by
Alex5723
1 day ago -
Troy Hunt of HaveIBeenPwned Phished
by
Lars220
21 hours, 8 minutes ago -
Microsoft Windows security auditing Code 5061
by
mpw
1 day, 18 hours ago -
Can’t display images in incoming Outlook 365 emails
by
WScopwriter
1 day, 2 hours ago -
Windows 11 Insider Preview Build 26200.5510 early builds of 25H2
by
Alex5723
1 day, 3 hours ago -
0Patch : Micropatches released for SCF File NTLM Hash Disclosure Vulnerability
by
Alex5723
1 day, 3 hours ago -
Select multiple emails and they all open up!
by
CeeJay
2 days, 19 hours ago -
How to remove an update preview
by
Gunny
22 hours, 26 minutes ago -
Third party add ins reminder
by
Susan Bradley
5 hours, 7 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
2 days, 13 hours ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
3 days ago -
How can I update “Explorer Patcher”
by
WSplanckster
3 days, 1 hour ago -
Check out the home page for Signal
by
CAS
2 days, 23 hours ago -
Windows 11 and Trial version of MS Office
by
Tex265
2 days, 22 hours ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
3 days, 6 hours ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
3 days, 6 hours ago
Recent blog posts
- Removing bypassnro
- Where is Windows going?
- System Guard service error still won’t be fixed
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
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.