Hi,
I am in deep need of a VBA Code which could modify the below data to the desired format...At present i am manually doing the task which is consuming lot of time and boring too.
Actual Data
<table width="458" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:2706;width:56pt" width="74"> <col style="width:48pt" span="6" width="64"> <tbody><tr style="height:12.75pt" height="17"> <td class="xl24" colspan="7" style="height:12.75pt; mso-ignore:colspan;width:344pt" width="458" height="17">http://www.nseindia.com/content/indices/histdata/BANK NIFTY30-05-2011-30-05-2011.csv</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" style="height:12.75pt" height="17">Date</td> <td class="xl24">Open</td> <td class="xl24">High</td> <td class="xl24">Low</td> <td class="xl24">Close</td> <td class="xl24">Shares Traded</td> <td class="xl24">Turnover (Rs. Cr)</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl25" style="height:12.75pt" height="17">30-May-11</td> <td class="xl24">10742</td> <td class="xl24">10823.25</td> <td class="xl24">10715.1</td> <td class="xl24">10781.45</td> <td class="xl24">10396116</td> <td class="xl24">966.65</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" style="height:12.75pt" height="17">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" colspan="7" style="height:12.75pt;mso-ignore:colspan" height="17">http://www.nseindia.com/content/indices/histdata/CNX 10030-05-2011-30-05-2011.csv</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" style="height:12.75pt" height="17">Date</td> <td class="xl24">Open</td> <td class="xl24">High</td> <td class="xl24">Low</td> <td class="xl24">Close</td> <td class="xl24">Shares Traded</td> <td class="xl24">Turnover (Rs. Cr)</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl25" style="height:12.75pt" height="17">30-May-11</td> <td class="xl24">5420.55</td> <td class="xl24">5440.2</td> <td class="xl24">5396.4</td> <td class="xl24">5411.05</td> <td class="xl24">1.62E+08</td> <td class="xl24">6187.08</td> </tr> </tbody></table>
Desired Output
SYMBOLNAME (Example : Banknifty) ...Date(YYYYMMDD) Open , High,Low,Close,SharesTraded
Example
BANKNIFTY , 20110530 ,10742,10823.25,10715.1,10781.45,1039611
CNX100,20110530,5420.55,5440.2,5396.40,5411.05,
1. Extracting the symbol name from the URL....(Totally there are 19 Symbols)
Thankyou
I am in deep need of a VBA Code which could modify the below data to the desired format...At present i am manually doing the task which is consuming lot of time and boring too.
Actual Data
<table width="458" border="0" cellpadding="0" cellspacing="0"><col style="mso-width-source:userset;mso-width-alt:2706;width:56pt" width="74"> <col style="width:48pt" span="6" width="64"> <tbody><tr style="height:12.75pt" height="17"> <td class="xl24" colspan="7" style="height:12.75pt; mso-ignore:colspan;width:344pt" width="458" height="17">http://www.nseindia.com/content/indices/histdata/BANK NIFTY30-05-2011-30-05-2011.csv</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" style="height:12.75pt" height="17">Date</td> <td class="xl24">Open</td> <td class="xl24">High</td> <td class="xl24">Low</td> <td class="xl24">Close</td> <td class="xl24">Shares Traded</td> <td class="xl24">Turnover (Rs. Cr)</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl25" style="height:12.75pt" height="17">30-May-11</td> <td class="xl24">10742</td> <td class="xl24">10823.25</td> <td class="xl24">10715.1</td> <td class="xl24">10781.45</td> <td class="xl24">10396116</td> <td class="xl24">966.65</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" style="height:12.75pt" height="17">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> <td class="xl24">
</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" colspan="7" style="height:12.75pt;mso-ignore:colspan" height="17">http://www.nseindia.com/content/indices/histdata/CNX 10030-05-2011-30-05-2011.csv</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl24" style="height:12.75pt" height="17">Date</td> <td class="xl24">Open</td> <td class="xl24">High</td> <td class="xl24">Low</td> <td class="xl24">Close</td> <td class="xl24">Shares Traded</td> <td class="xl24">Turnover (Rs. Cr)</td> </tr> <tr style="height:12.75pt" height="17"> <td class="xl25" style="height:12.75pt" height="17">30-May-11</td> <td class="xl24">5420.55</td> <td class="xl24">5440.2</td> <td class="xl24">5396.4</td> <td class="xl24">5411.05</td> <td class="xl24">1.62E+08</td> <td class="xl24">6187.08</td> </tr> </tbody></table>
Desired Output
SYMBOLNAME (Example : Banknifty) ...Date(YYYYMMDD) Open , High,Low,Close,SharesTraded
Example
BANKNIFTY , 20110530 ,10742,10823.25,10715.1,10781.45,1039611
CNX100,20110530,5420.55,5440.2,5396.40,5411.05,
1. Extracting the symbol name from the URL....(Totally there are 19 Symbols)
Thankyou