更新时间:2023-10-12 23:00:58
据我所知,使用或选择一系列单元格需要使用Range对象。
可以使用以下方法选择单个单元格:
As far as I know, using or selecting a range of cells requires the use of the Range object.
One can select a single cell by using:
Cells(1, 1).Activate
或使用以下方法合并一系列单元格:
or merge a range of cells by using:
Range(Cells(2, 3), Cells(10, 4)).Merge
但最简单的方法是:
But the simplest method would be:
Range("C2:E2").Merge
范围是一种有效的方法,用于处理一系列单元格,为什么要使用其他任何东西?
Perhaos你可能会发现一些有用的或与你有关的东西在此查询:如何使用Excel中的Visual Basic过程选择单元格/范围 [ ^ ]