VBA更高效/更清晰的方式来select工作表并将variables分配给单元格

我想知道是否有一个更有效的方法来做到这一点,将编译更快,看起来更好/less线:

Sheets("Parameters").Select PlateNo = Cells(1, 2).Value Startrow = Cells(2, 2).Values Startcol = Cells(3, 2).Value ColNo = Cells(4, 2).Value Step = Cells(5, 2).Value 

你应该尽量避免使用select/激活(你几乎不需要使用它们…)

 With Sheets("Parameters").Columns(2) PlateNo = .Cells(1).Value Startrow = .Cells(2).Value Startcol = .Cells(3).Value ColNo = .Cells(4).Value StepNo = .Cells(5).Value End With