Hi, I am fairly new to macro coding. I have an issue with a text file in which the data improrted into excel do no give me any information whatsoever.
My file will always be in such a format
Trader Account,
,
Account,Exchange,Type,Date,Option,
Currency,P and L,Tot Posn,SOD Short,SOD Long,Pos Long,Pos Short,Working Buys,Working Sells,
P and L Price,SOD Price,
SOD NLV,Posn Margin Req,% BP Used,% BP Remaining,% Open Exposure,% P+L Burn Rate,
,
CSGL000003A,SGXQ,QNK,SEP11,,
JPY,-5000.00,+2,0,0,2,0,0,2,
10045.0000,10085.0000,
827428.32,0.00,-0.60,99.40,0.00,-0.60,
,
CSGL000003A,,QNK,,,
USD,-64.00,+2,0,0,2,0,0,2,
,,
10591.00,0.00,-0.60,99.40,0.00,-0.60,
,
CSGL000003A,SGXQ,QTW,JUL11,,
USD,0.00,0,0,0,0,0,0,0,
308.7000,308.2000,
10591.00,0.00,0.00,100.00,0.00,0.00,
,
CSGL000003A,,QTW,,,
USD,0.00,0,0,0,0,0,0,0,
,,
10591.00,0.00,0.00,100.00,0.00,0.00,
However when i import the data into excel, the header is imported into 3 rows which is not what I want. Also a number of data such as Tot Posn,SOD Short,SOD Long,Pos Long,Pos Short,Working Buys,Working Sells is not needed for my analysis.
What I want will be something like that
<table border="0" cellpadding="0" cellspacing="0" width="640"><col style="mso-width-source:userset;mso-width-alt:2962;width:61pt" width="81"> <col style="width:48pt" span="7" width="64"> <col style="mso-width-source:userset;mso-width-alt:4059;width:83pt" width="111"> <tbody><tr style="height:15.0pt" height="20"> <td style="height:15.0pt;width:61pt" align="left" height="20" width="81">Account </td> <td style="width:48pt" align="left" width="64">Exchange</td> <td style="width:48pt" align="left" width="64">TYPE</td> <td style="width:48pt" align="left" width="64">Date</td> <td style="width:48pt" align="left" width="64">Option</td> <td style="width:48pt" align="left" width="64">Currency </td> <td style="width:48pt" align="left" width="64">P&L</td> <td style="width:48pt" align="left" width="64">SOD NLV</td> <td style="width:83pt" width="111">Posn margin Req</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="left" height="20">CSGL00003A</td> <td align="left">SGXQ</td> <td align="left">QNK</td> <td class="xl63" align="left">Sep-11</td> <td align="left">
</td> <td align="left">JPY</td> <td align="left">-5000</td> <td align="left">827428</td> <td align="left">0</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="left" height="20">CSGL00003A</td> <td align="left">QNK</td> <td align="left">
</td> <td align="left">
</td> <td align="left">
</td> <td align="left">USD</td> <td align="left">-64</td> <td align="left">10591</td> <td align="left">0</td> </tr> </tbody></table>..... cont.
My file will always be in such a format
Trader Account,
,
Account,Exchange,Type,Date,Option,
Currency,P and L,Tot Posn,SOD Short,SOD Long,Pos Long,Pos Short,Working Buys,Working Sells,
P and L Price,SOD Price,
SOD NLV,Posn Margin Req,% BP Used,% BP Remaining,% Open Exposure,% P+L Burn Rate,
,
CSGL000003A,SGXQ,QNK,SEP11,,
JPY,-5000.00,+2,0,0,2,0,0,2,
10045.0000,10085.0000,
827428.32,0.00,-0.60,99.40,0.00,-0.60,
,
CSGL000003A,,QNK,,,
USD,-64.00,+2,0,0,2,0,0,2,
,,
10591.00,0.00,-0.60,99.40,0.00,-0.60,
,
CSGL000003A,SGXQ,QTW,JUL11,,
USD,0.00,0,0,0,0,0,0,0,
308.7000,308.2000,
10591.00,0.00,0.00,100.00,0.00,0.00,
,
CSGL000003A,,QTW,,,
USD,0.00,0,0,0,0,0,0,0,
,,
10591.00,0.00,0.00,100.00,0.00,0.00,
However when i import the data into excel, the header is imported into 3 rows which is not what I want. Also a number of data such as Tot Posn,SOD Short,SOD Long,Pos Long,Pos Short,Working Buys,Working Sells is not needed for my analysis.
What I want will be something like that
<table border="0" cellpadding="0" cellspacing="0" width="640"><col style="mso-width-source:userset;mso-width-alt:2962;width:61pt" width="81"> <col style="width:48pt" span="7" width="64"> <col style="mso-width-source:userset;mso-width-alt:4059;width:83pt" width="111"> <tbody><tr style="height:15.0pt" height="20"> <td style="height:15.0pt;width:61pt" align="left" height="20" width="81">Account </td> <td style="width:48pt" align="left" width="64">Exchange</td> <td style="width:48pt" align="left" width="64">TYPE</td> <td style="width:48pt" align="left" width="64">Date</td> <td style="width:48pt" align="left" width="64">Option</td> <td style="width:48pt" align="left" width="64">Currency </td> <td style="width:48pt" align="left" width="64">P&L</td> <td style="width:48pt" align="left" width="64">SOD NLV</td> <td style="width:83pt" width="111">Posn margin Req</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="left" height="20">CSGL00003A</td> <td align="left">SGXQ</td> <td align="left">QNK</td> <td class="xl63" align="left">Sep-11</td> <td align="left">
</td> <td align="left">JPY</td> <td align="left">-5000</td> <td align="left">827428</td> <td align="left">0</td> </tr> <tr style="height:15.0pt" height="20"> <td style="height:15.0pt" align="left" height="20">CSGL00003A</td> <td align="left">QNK</td> <td align="left">
</td> <td align="left">
</td> <td align="left">
</td> <td align="left">USD</td> <td align="left">-64</td> <td align="left">10591</td> <td align="left">0</td> </tr> </tbody></table>..... cont.