This question shows research effort; it is useful and clear
0
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
在 Excel 2010 中,如何使用 VBA 从两个单独的区域创建两列区域?
下面的代码使用联合,但组合范围 (rngAll) 仅包含第一列 (rng1):
Dim rng1 As Range
Dim rng2 As Range
Dim rngAll As Range
Set rng1 = Range(TableColumn1)
Set rng2 = Range(TableColumn2)
Set rngAll = Application.Union(rng1, rng2)