|
请问这段代码怎么简化?
因为后面+的数字可能加到100去了
SHX.Cells(I + 5, ICOL + 1) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 2).Value
SHX.Cells(I + 5, ICOL + 2) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 3).Value
SHX.Cells(I + 5, ICOL + 3) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 4).Value
SHX.Cells(I + 5, ICOL + 4) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 5).Value
SHX.Cells(I + 5, ICOL + 5) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 6).Value
SHX.Cells(I + 5, ICOL + 6) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 7).Value
SHX.Cells(I + 5, ICOL + 7) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 8).Value
SHX.Cells(I + 5, ICOL + 8) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 9).Value
SHX.Cells(I + 5, ICOL + 9) = SH.UsedRange.Find(SHX.Cells(2, ICOL)).Offset(1, 10).Value
|
|