Hi,
I have an array like tabary=Array("a","b","c"). I tried to do this followings but failed.
Any idea how I should handle the situation? I don't want to write more than one Array process, if I can put those strings as Array arguments.
Thanks in advance.
Sub Week17By17(contnts As String)
Dim wk17 As Variant
Dim i, j As Long
wk17 = Array(contnts)
For q = LBound(wk17) To UBound(wk17)
Cells(10, wk17(q)).Activate
...
...
Next
End Sub
Sub testit
Week17By17 ("a", "b", "c")
Week17By17 ("x", "y", "z")
I have an array like tabary=Array("a","b","c"). I tried to do this followings but failed.
Any idea how I should handle the situation? I don't want to write more than one Array process, if I can put those strings as Array arguments.
Thanks in advance.
Sub Week17By17(contnts As String)
Dim wk17 As Variant
Dim i, j As Long
wk17 = Array(contnts)
For q = LBound(wk17) To UBound(wk17)
Cells(10, wk17(q)).Activate
...
...
Next
End Sub
Sub testit
Week17By17 ("a", "b", "c")
Week17By17 ("x", "y", "z")