ankianand88
New Member
- Joined
- Sep 27, 2011
- Messages
- 4
I have an excel sheet which contains data in A column.and data is of the form
<TABLE style="WIDTH: 307pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=409 border=0><COLGROUP><COL style="WIDTH: 307pt; mso-width-source: userset; mso-width-alt: 14957" width=409><TBODY><TR style="HEIGHT: 15pt; mso-height-source: userset" height=20><TD class=xl64 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: gray 0.5pt solid; WIDTH: 307pt; BORDER-BOTTOM: gray 0.5pt solid; HEIGHT: 15pt; BACKGROUND-COLOR: transparent" width=409 height=20>Sub Total (SEPT MINOR 2011)</TD></TR><TR style="HEIGHT: 15pt; mso-height-source: userset" height=20><TD class=xl64 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray; BORDER-LEFT: gray 0.5pt solid; WIDTH: 307pt; BORDER-BOTTOM: gray 0.5pt solid; HEIGHT: 15pt; BACKGROUND-COLOR: transparent" width=409 height=20>Sub Total (336103 NOV 11)</TD></TR></TBODY></TABLE>
i need a macro which gives the data in the following format
SEPT MINOR 2011
336103 NOV 11
some guys told me regex can be used..but i have no clue..how to go about it...please help
<TABLE style="WIDTH: 307pt; BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width=409 border=0><COLGROUP><COL style="WIDTH: 307pt; mso-width-source: userset; mso-width-alt: 14957" width=409><TBODY><TR style="HEIGHT: 15pt; mso-height-source: userset" height=20><TD class=xl64 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray 0.5pt solid; BORDER-LEFT: gray 0.5pt solid; WIDTH: 307pt; BORDER-BOTTOM: gray 0.5pt solid; HEIGHT: 15pt; BACKGROUND-COLOR: transparent" width=409 height=20>Sub Total (SEPT MINOR 2011)</TD></TR><TR style="HEIGHT: 15pt; mso-height-source: userset" height=20><TD class=xl64 style="BORDER-RIGHT: #ece9d8; BORDER-TOP: gray; BORDER-LEFT: gray 0.5pt solid; WIDTH: 307pt; BORDER-BOTTOM: gray 0.5pt solid; HEIGHT: 15pt; BACKGROUND-COLOR: transparent" width=409 height=20>Sub Total (336103 NOV 11)</TD></TR></TBODY></TABLE>
i need a macro which gives the data in the following format
SEPT MINOR 2011
336103 NOV 11
some guys told me regex can be used..but i have no clue..how to go about it...please help