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?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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, 11 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
-
Windows 7 ISO /Windows 10 ISO
by
ECWS
15 minutes ago -
No HP software folders
by
fpefpe
1 hour, 9 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
39 minutes ago -
Stay connected anywhere
by
Peter Deegan
3 hours, 52 minutes ago -
Copilot, under the table
by
Will Fastie
1 hour, 6 minutes ago -
The Windows experience
by
Will Fastie
10 hours, 6 minutes ago -
A tale of two operating systems
by
Susan Bradley
1 hour, 2 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
15 hours, 26 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 6 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
23 hours, 32 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
3 hours, 58 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 7 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
2 days ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
2 days ago -
regarding april update and may update
by
heybengbeng
2 days, 1 hour ago -
MS Passkey
by
pmruzicka
1 day, 3 hours ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 9 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 20 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 8 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 3 hours ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 12 hours ago -
AI slop
by
Susan Bradley
1 day, 6 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 14 hours ago -
Two blank icons
by
CR2
22 hours, 21 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
1 day ago -
End of 10
by
Alex5723
4 days, 1 hour ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 23 hours ago -
test post
by
gtd12345
4 days, 7 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 21 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
2 days 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.