Do you want to read this in a VB program? If so, post to a VB list instead of HTML.
If you can control the HTML, you can create a javascript array at the same time as you create the HTML.
Main Topics
Browse All TopicsI have the following HTML and I would like to read the value "Stock" and value of "T+2NetQty" and store it in array.That is: stkcode(0) = "00432" , Qty(0) = "1,000" , stkcode(1)="00500",Qty(1)=
I have similar question here : http://www.experts-exchang
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Cache-Control"
<!--META HTTP-EQUIV='Content-Type' CONTENT='text/html; charset=iso-8859-1'-->
</head>
<body>
<table width="100%" border="1" height="100%" bgcolor="#cccccc">
<tbody>
<tr>
<td height="200" colspan="3">
<table width="100%" border="0" height="100%" cellpadding="0"
cellspacing="0">
<tbody>
<tr bgcolor="#9999ff">
<td bgcolor="#9999ff" height="17%" nowrap="nowrap"
width="50%"><b>Client Code</b><b> <input type="text" name="ClientCode"
value="" disabled="disabled"><input
size="30" value="" disabled="disabled"></b></
<td height="17%" bgcolor="#9999ff" nowrap="nowrap"
width="25%"><b>Client Type:<input type="text" name="ClientType"
size="10" value="Cash" disabled="disabled"> </b></td>
<td height="17%" bgcolor="#9999ff" nowrap="nowrap"
width="25%"><b>AECode: <input type="text" name="AECode" size="10"
value="" disabled="disabled"></b></
<td width="0%"> </td>
<td width="0%"> </td>
</tr>
<tr>
<td colspan="3" height="16%">
<table width="100%" border="0" cellpadding="0"
cellspacing="0" height="100%">
<tbody>
<tr>
<td width="5%"> </td>
<td width="17%">T Opening Cash Bal:</td>
<td width="17%"><input type="text" name="OpenCash"
value="103,802.06" disabled="disabled"></td>
<td width="61%"> </td>
</tr>
</tbody>
</table>
</td>
<td height="20" width="0%"> </td>
<td height="20" width="0%"> </td>
</tr>
<tr>
<td colspan="3" height="16%">
<table width="100%" border="0" cellpadding="0"
cellspacing="0" height="100%">
<tbody>
<tr>
<td width="5%"> </td>
<td width="17%">T Cash Out:</td>
<td width="17%"><input type="text" name="CashOut"
value="0.00" disabled="disabled"></td>
<td width="61%"> </td>
</tr>
</tbody>
</table>
</td>
<td height="20" width="0%"> </td>
<td height="20" width="0%"> </td>
</tr>
<tr>
<td colspan="3" height="16%">
<table width="100%" border="0" cellpadding="0"
cellspacing="0" height="100%">
<tbody>
<tr>
<td width="5%"> </td>
<td width="17%">T + 1 Cash Bal:</td>
<td width="17%"><input type="text" name="T1Bal"
value="144,450.78" disabled="disabled"></td>
<td width="61%"> </td>
</tr>
</tbody>
</table>
</td>
<td height="20" width="0%"> </td>
<td height="20" width="0%"> </td>
</tr>
<tr>
<td colspan="3" height="16%">
<table width="100%" border="0" cellpadding="0"
cellspacing="0" height="100%">
<tbody>
<tr>
<td width="5%"> </td>
<td width="17%">T + 2 Cash Bal:</td>
<td width="17%"><input type="text" name="T2Bal"
value="144,450.78" disabled="disabled"></td>
<td width="61%"><= Inc. Today's Net B/S Gross
Amount.</td>
</tr>
</tbody>
</table>
</td>
<td height="20" width="0%"> </td>
<td height="20" width="0%"> </td>
</tr>
<tr>
<td colspan="3" height="16%">
<table width="100%" border="0" cellpadding="0"
cellspacing="0" height="100%">
<tbody>
<tr>
<td width="5%"> </td>
<td width="17%">Short Stk Cash Adj:</td>
<td width="17%"><input type="text" name="ShortStock"
value="0.00" disabled="disabled"></td>
<td width="61%"><= Sum (Short Stock Qty * Cls
Price)</td>
</tr>
</tbody>
</table>
</td>
<td height="20" width="0%"> </td>
<td height="20" width="0%"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td height="200" colspan="3">
<table width="100%" border="0" height="100%" cellpadding="1"
cellspacing="1">
<tbody>
<tr>
<td height="16%" width="8%"> </td>
<td height="16%" width="8%"> </td>
<td width="9%" height="16%"> </td>
<td width="9%" height="16%"> </td>
<td width="12%" height="16%"> </td>
<td width="8%" height="16%"> </td>
<td width="12%" height="16%"> </td>
<td width="5%" height="16%"> </td>
<td colspan="3" height="16%">
<div align="left"><b>Today's Pending Order</b></div>
</td>
</tr>
<tr bgcolor="#9999ff">
<td height="16%">
<div align="center">Stock</div>
</td>
<td height="16%">
<div align="center">T Qty</div>
</td>
<td height="16%">
<div align="center">T+1Settle</
</td>
<td height="16%">
<div align="center">T+2Settle</
</td>
<td height="16%">
<div align="center">T+2NetQty</
</td>
<td height="16%" bgcolor="#9999ff">
<div align="center">ClsPrice </div>
</td>
<td height="16%">
<div align="center">T+2MarketVa
</td>
<td height="16%">
<div align="center">Mrgn%</div>
</td>
<td height="16%" width="12%">
<div align="center">AcceptyMarg
</td>
<td height="16%" width="12%">
<div align="center">Buy</div>
</td>
<td height="16%" width="12%">
<div align="center">Sell</div>
</td>
</tr>
<tr bgcolor="#9999ff">
<td height="16%">
<div align="center">00432</div>
</td>
<td height="16%">
<div align="center">1,000</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">1,000</div>
</td>
<td height="16%">
<div align="center">2.500</div>
</td>
<td height="16%">
<div align="center">2,500</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
</tr>
<tr bgcolor="#9999ff">
<td height="16%">
<div align="center">00500</div>
</td>
<td height="16%">
<div align="center">25,000</div
</td>
<td height="16%">
<div align="center">-20,000</di
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">5,000</div>
</td>
<td height="16%">
<div align="center">2.100</div>
</td>
<td height="16%">
<div align="center">10,500</div
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
<td height="16%">
<div align="center">0</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td height="200" colspan="3">
<table width="100%" border="0" cellpadding="0" cellspacing="0"
height="100%">
<tbody>
<tr bgcolor="#9999ff">
<td colspan="7" height="11%" width="100%"><b>Trading Limit
Available:</b></td>
</tr>
<tr>
<td height="11%" width="2%"> </td>
<td height="11%" align="left" width="15%">T + 2 Cash Bal: </td>
<td height="11%" width="10%"><input type="text"
name="T2Bal1" value="144,450.78" disabled="disabled"></td>
<td height="11%" width="5%">X</td>
<td height="11%" width="10%"><input type="text"
name="T2Bal2" size="10" value="1.00" disabled="disabled"></td>
<td height="11%" width="5%">=</td>
<td height="11%"><input type="text" name="T2Bal3"
value="144,450.78" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" align="left">Marginable Stk Value:</td>
<td height="11%"><input type="text" name="MarginVal1"
value="0.00" disabled="disabled"></td>
<td height="11%" width="5%">X</td>
<td height="11%" width="10%"><input type="text"
name="MarginVal2" size="10" value="0.00" disabled="disabled"></td>
<td height="11%" width="5%">=</td>
<td height="11%"><input type="text" name="MarginVal3"
value="0.00" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" align="left">Non-M'ble Stk Value:</td>
<td height="11%"><input type="text" name="NonMakVal1"
value="13,000.00" disabled="disabled"></td>
<td height="11%" width="5%">X</td>
<td height="11%" width="10%"><input type="text"
name="NonMakVal2" size="10" value="0.00" disabled="disabled"></td>
<td height="11%" width="5%">=</td>
<td height="11%"><input type="text" name="NonMakVal3"
value="0.00" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" align="left">Short Stk Cash Adj:</td>
<td height="11%"><input type="text" name="ShortCash1"
value="0.00" disabled="disabled"></td>
<td height="11%" width="5%">X</td>
<td height="11%" width="10%"><input type="text"
name="ShortCash2" size="10" value="1.00" disabled="disabled"></td>
<td height="11%" width="5%"> </td>
<td height="11%"><input type="text" name="ShortCash3"
value="0.00" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" align="left">Pending Buy Order:</td>
<td height="11%"><input type="text" name="Pending1"
value="0.00" disabled="disabled"></td>
<td colspan="2" height="11%" width="15%">=></td>
<td height="11%" width="5%"> </td>
<td height="11%"><input type="text" name="Pending3"
value="0.00" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" align="left">Credit Limited: </td>
<td height="11%"><input type="text" name="CreditLimit1"
value="0.00" disabled="disabled"></td>
<td colspan="2" height="11%" width="15%">=></td>
<td height="11%" width="5%"> </td>
<td height="11%"><input type="text" name="CreditLimit3"
value="0.00" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" align="left">Day Trade Limited</td>
<td height="11%"><input type="text" name="DayTrade1"
value="0.00" disabled="disabled"></td>
<td colspan="2" height="11%" width="15%">=></td>
<td height="11%" width="5%"> </td>
<td height="11%"><input type="text" name="DayTrade3"
value="0.00" disabled="disabled"></td>
</tr>
<tr>
<td height="11%"> </td>
<td height="11%" width="20%" align="left"> </td>
<td colspan="3" height="11%">
<div align="left"><b>Order Size Limit:</b></div>
</td>
<td height="11%" width="5%"> </td>
<td height="11%"><input type="text" name="OrderSize"
value="144,450.78" disabled="disabled"></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</body>
</html>
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I cannot control HTML.
I have solved the problem myself . the code is as follow :
Dim myDoc As New HTMLDocument
Dim myDoc1 As New HTMLDocument
Dim myDoc2 As New HTMLDocument
Dim stkcode() As String
Dim qty() As String
myDoc.body.innerHTML = IE_hui_kai.document.body.i
myDoc1.body.innerHTML = "<table>" & myDoc.getElementsByTagName
If myDoc1.getElementsByTagNam
Dim i As Integer
ReDim stkcode(myDoc1.getElements
ReDim qty(myDoc1.getElementsByTa
For i = 2 To myDoc1.getElementsByTagNam
myDoc2.body.innerHTML = "<table>" & myDoc1.getElementsByTagNam
stkcode(i - 2) = myDoc2.getElementsByTagNam
qty(i - 2) = myDoc2.getElementsByTagNam
Next i
For i = LBound(stkcode) To UBound(stkcode) Step 1
If stkcode(i) <> "" Then
ActiveCell.Offset(1, 0).Select
ActiveCell.Offset(0, 0).value = stkcode(i)
ActiveCell.Offset(0, 1).value = qty(i)
' MsgBox stkcode(i)
' MsgBox qty(i)
End If
Next i
End If
Business Accounts
Answer for Membership
by: Duncan_FordPosted on 2004-05-31 at 07:28:21ID: 11196695
Can you control the HTML output in any way? If, so, where is the data coming from?