lastcolumn = Sheet3.Cells(1, Sheet3.Columns.Count).End(xlToLeft).Column
Sheet3.Range("B17:" & lastcolumn & "17").Formula = "=SUMIFS($H:$H,$B:$B,B$1)"
它不起作用:(
答案 0 :(得分:1)
如QHar所说,使用
Sheet3.Range(Sheet3.Cells(17, 2), Sheet3.Cells(17, lastcolumn)). ...