Home |
Search |
Today's Posts |
#10
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Last stretch...
the above code works perfect. Now, I am trying Rows Total and Columns Totals .... .... Loop End With SH2.Select SH2.Cells(k, "A") = "Grand Total": Rows("1:1").Font.Bold = True: Range("B1:D1").HorizontalAlignment = xlRight 'Place row totals in Column D. Reference Error there ----------------------------------------------------------------------------- For i = 2 To k 'SH2.Cells(i, "D").Value = Application.Sum(Range(Cells(i, "B"), Cells(i, "C"))) Next i 'Place Columns totals in row k. ------------------------------------------- For i = 2 To 4 SH2.Cells(k, i).Value = Application.Sum(Range(Cells(2, i), Cells(k, i))) Next i Row(k).Font.Bold = True ' Error . How do I refer to the whole row with a variable ? Exit Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
sheet2 = sheet1 | Excel Programming | |||
copy data from sheet2 to sheet1 when sheet2 has variable # of rows | Excel Discussion (Misc queries) | |||
A1 Sheet2 is linked to A1 sheet1 so that user enters value(abc123) a1 sheet1 and A1 sheet2 is updated | Excel Programming | |||
how do copy "sheet1!A1+1 in sheet2 to sheet 3 and get "sheet2!A1+ | Excel Discussion (Misc queries) | |||
[=Sheet1!A1] - if i use Column A1 ('Sheet1') / A2 ('Sheet2') | Excel Worksheet Functions |