0
我想输入一系列单元格地址到VBA中的数组中。数组范围地址
我的代码目前状态:
Do
Range1 = Application.InputBox(Prompt:="Please select the cell to add to the Array. Press ""Cancel"" when all Ranges have been added.", Title:="Range Select", Type:=8)
If Range1 <> False Then
ReDim Preserve TestArray(Count)
Set TestArray(Count) = Range1.Address
End If
Count = Count + 1
Loop Until Range1 = False
最后,我在寻找类似(A1,C3,D6,G8)
这是行不通的。
TestArray(I)。价值= TestArray(I).value的* 1.01
我如何创建范围的数组:
然后,我会说是这样以后使用这些范围?
在此先感谢
如果我选择输入框,类型0,我会接受一个字符串,使得单元格A1将被存储在阵列中作为像“= R1C1”的字符串 我可以然后分析此,并使用细胞功能 但有人可能知道更好的方法? – user78913