[TABLE="class: cms_table"]
<tbody>[TR]
[TD="align: right"]791643
[/TD]
[TD="align: right"]-4,105.80[/TD]
[TD="align: right"]-4,105.80[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]-577.8[/TD]
[TD="align: right"]-577.8[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-256.8[/TD]
[TD="align: right"]-256.8
[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]-271.2[/TD]
[TD="align: right"]-271.2[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276
[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]-621[/TD]
[TD="align: right"]-621[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]791647
[/TD]
[TD="align: right"]-13,800.00[/TD]
[TD="align: right"]-13,800.00[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-644.49[/TD]
[TD="align: right"]-644.49[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-1,155.51[/TD]
[TD="align: right"]-1,155.51[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]791648
[/TD]
[TD="align: right"]-7,053.33[/TD]
[TD="align: right"]-7,053.33[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]-352[/TD]
[TD="align: right"]-352[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]-450.24[/TD]
[TD="align: right"]-450.24[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]-438.12[/TD]
[TD="align: right"]-438.12[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-563.3[/TD]
[TD="align: right"]-563.3[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-1,073.79[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-1,073.79[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-596.55[/TD]
[TD="align: right"]-596.55[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-596.58[/TD]
[TD="align: right"]-596.58[/TD]
[/TR]
[TR]
[TD="align: right"]791654
[/TD]
[TD="align: right"]-2,056.22[/TD]
[TD="align: right"]-2,056.23[/TD]
[/TR]
[TR]
[TD="align: right"]3/15/2007[/TD]
[TD="align: right"]-2,056.22[/TD]
[TD="align: right"]-2,056.23[/TD]
[/TR]
[TR]
[TD="align: right"]791655
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]791657
[/TD]
[TD="align: right"]-3,660.00[/TD]
[TD="align: right"]-3,660.00[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]-300[/TD]
[TD="align: right"]-300[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-576[/TD]
[TD="align: right"]-576[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
</tbody>[/TABLE]
Please help me transpose the data above to rows, i am really stuck. after the Macro, i am expecting this result:
[TABLE="class: cms_table"]
<tbody>[TR]
[TD] Ref Number
[/TD]
[TD="align: right"]2/28/2006
[/TD]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]12/31/2007[/TD]
[TD][/TD]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]12/31/2007[/TD]
[/TR]
[TR]
[TD="align: right"]791643[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-577.8[/TD]
[TD][/TD]
[TD="align: right"]-256.8[/TD]
[TD="align: right"]-271.2[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-621[/TD]
[TD="align: right"]-345[/TD]
[TD][/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-345[/TD]
[TD][/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-577.8[/TD]
[TD][/TD]
[TD="align: right"]-256.8[/TD]
[TD="align: right"]-271.2[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-621[/TD]
[TD="align: right"]-345[/TD]
[TD][/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]791647[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-644.49[/TD]
[TD="align: right"]-1,155.51[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD][/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-644.49[/TD]
[TD="align: right"]-1,155.51[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]791648[/TD]
[TD="align: right"]-352[/TD]
[TD="align: right"]-450.24[/TD]
[TD="align: right"]-438.12[/TD]
[TD="align: right"]-563.3[/TD]
[TD][/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD][/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-596.55[/TD]
[TD="align: right"]-596.58[/TD]
[TD][/TD]
[TD="align: right"]-352[/TD]
[TD="align: right"]-450.24[/TD]
[TD="align: right"]-438.12[/TD]
[TD="align: right"]-563.3[/TD]
[TD][/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD][/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-596.55[/TD]
[TD="align: right"]-596.58[/TD]
[/TR]
[TR]
[TD="align: right"]791654[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-2,056.22[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-2,056.22[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]791655[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]791657[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-300
[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD][/TD]
[TD="align: right"]-576[/TD]
[TD="align: right"]-360[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-300[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD][/TD]
[TD="align: right"]-576[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please note that i have 2 columns that i need transposed to rows and that each member (denoted by ref number) do not necessarily have a consistent number of rows-they may have blanks in some columns.
<tbody>[TR]
[TD="align: right"]791643
[/TD]
[TD="align: right"]-4,105.80[/TD]
[TD="align: right"]-4,105.80[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]-577.8[/TD]
[TD="align: right"]-577.8[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-256.8[/TD]
[TD="align: right"]-256.8
[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]-271.2[/TD]
[TD="align: right"]-271.2[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276
[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]-621[/TD]
[TD="align: right"]-621[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]791647
[/TD]
[TD="align: right"]-13,800.00[/TD]
[TD="align: right"]-13,800.00[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-644.49[/TD]
[TD="align: right"]-644.49[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-1,155.51[/TD]
[TD="align: right"]-1,155.51[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]791648
[/TD]
[TD="align: right"]-7,053.33[/TD]
[TD="align: right"]-7,053.33[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]-352[/TD]
[TD="align: right"]-352[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]-450.24[/TD]
[TD="align: right"]-450.24[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]-438.12[/TD]
[TD="align: right"]-438.12[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-563.3[/TD]
[TD="align: right"]-563.3[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-1,073.79[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-1,073.79[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-596.55[/TD]
[TD="align: right"]-596.55[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-596.58[/TD]
[TD="align: right"]-596.58[/TD]
[/TR]
[TR]
[TD="align: right"]791654
[/TD]
[TD="align: right"]-2,056.22[/TD]
[TD="align: right"]-2,056.23[/TD]
[/TR]
[TR]
[TD="align: right"]3/15/2007[/TD]
[TD="align: right"]-2,056.22[/TD]
[TD="align: right"]-2,056.23[/TD]
[/TR]
[TR]
[TD="align: right"]791655
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2006[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]10/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]791657
[/TD]
[TD="align: right"]-3,660.00[/TD]
[TD="align: right"]-3,660.00[/TD]
[/TR]
[TR]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]-300[/TD]
[TD="align: right"]-300[/TD]
[/TR]
[TR]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[/TR]
[TR]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[/TR]
[TR]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[/TR]
[TR]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[/TR]
[TR]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[/TR]
[TR]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]-576[/TD]
[TD="align: right"]-576[/TD]
[/TR]
[TR]
[TD="align: right"]12/31/2007[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-360[/TD]
[/TR]
</tbody>[/TABLE]
Please help me transpose the data above to rows, i am really stuck. after the Macro, i am expecting this result:
[TABLE="class: cms_table"]
<tbody>[TR]
[TD] Ref Number
[/TD]
[TD="align: right"]2/28/2006
[/TD]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]12/31/2007[/TD]
[TD][/TD]
[TD="align: right"]2/28/2006[/TD]
[TD="align: right"]12/31/2006[/TD]
[TD="align: right"]1/31/2007[/TD]
[TD="align: right"]2/28/2007[/TD]
[TD="align: right"]3/31/2007[/TD]
[TD="align: right"]4/30/2007[/TD]
[TD="align: right"]5/31/2007[/TD]
[TD="align: right"]6/30/2007[/TD]
[TD="align: right"]7/31/2007[/TD]
[TD="align: right"]8/31/2007[/TD]
[TD="align: right"]9/30/2007[/TD]
[TD="align: right"]10/31/2007[/TD]
[TD="align: right"]11/30/2007[/TD]
[TD="align: right"]12/31/2007[/TD]
[/TR]
[TR]
[TD="align: right"]791643[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-577.8[/TD]
[TD][/TD]
[TD="align: right"]-256.8[/TD]
[TD="align: right"]-271.2[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-621[/TD]
[TD="align: right"]-345[/TD]
[TD][/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-345[/TD]
[TD][/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-577.8[/TD]
[TD][/TD]
[TD="align: right"]-256.8[/TD]
[TD="align: right"]-271.2[/TD]
[TD="align: right"]-345[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-621[/TD]
[TD="align: right"]-345[/TD]
[TD][/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-276[/TD]
[TD="align: right"]-345[/TD]
[/TR]
[TR]
[TD="align: right"]791647[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-644.49[/TD]
[TD="align: right"]-1,155.51[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD][/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-644.49[/TD]
[TD="align: right"]-1,155.51[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-900[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[TD="align: right"]-1,200.00[/TD]
[/TR]
[TR]
[TD="align: right"]791648[/TD]
[TD="align: right"]-352[/TD]
[TD="align: right"]-450.24[/TD]
[TD="align: right"]-438.12[/TD]
[TD="align: right"]-563.3[/TD]
[TD][/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD][/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-596.55[/TD]
[TD="align: right"]-596.58[/TD]
[TD][/TD]
[TD="align: right"]-352[/TD]
[TD="align: right"]-450.24[/TD]
[TD="align: right"]-438.12[/TD]
[TD="align: right"]-563.3[/TD]
[TD][/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-1,073.79[/TD]
[TD][/TD]
[TD="align: right"]-1,073.79[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-477.24[/TD]
[TD="align: right"]-596.55[/TD]
[TD="align: right"]-596.58[/TD]
[/TR]
[TR]
[TD="align: right"]791654[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-2,056.22[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-2,056.22[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]791655[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: right"]791657[/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-300
[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD][/TD]
[TD="align: right"]-576[/TD]
[TD="align: right"]-360[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"]-300[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-240[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD="align: right"]-288[/TD]
[TD="align: right"]-360[/TD]
[TD][/TD]
[TD="align: right"]-576[/TD]
[TD="align: right"]-360[/TD]
[/TR]
[TR]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Please note that i have 2 columns that i need transposed to rows and that each member (denoted by ref number) do not necessarily have a consistent number of rows-they may have blanks in some columns.