Hi I have the following statement:
strH(1) = strH(1) & "<TR>" & vbcrlf
strH(1) = strH(1) & "<TH bgcolor=#cccccc nowrap>Total Hours for " & CCNum & " </TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(B2:B"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(C2:C"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(D2
"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(E2:E"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(F2:F"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(G2:G"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(H2:H"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(I2:I"& intRowCount & "
</TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(J2:J"& intRowCount & "
</TH>"
Response.Write strH(1)
The document opens up in excel in an iframe. Now I need it to keep totaling the sums of each column depending on how many there are. It could be five columns to hundred columns. I am doing this on a ASP page.
Thanks
strH(1) = strH(1) & "<TR>" & vbcrlf
strH(1) = strH(1) & "<TH bgcolor=#cccccc nowrap>Total Hours for " & CCNum & " </TH>"
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(B2:B"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(C2:C"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(D2
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(E2:E"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(F2:F"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(G2:G"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(H2:H"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(I2:I"& intRowCount & "
strH(1) = strH(1) & "<TH bgcolor=#cccccc> =sum(J2:J"& intRowCount & "
Response.Write strH(1)
The document opens up in excel in an iframe. Now I need it to keep totaling the sums of each column depending on how many there are. It could be five columns to hundred columns. I am doing this on a ASP page.
Thanks