G
gimme_this_gimme_that
Suppose I want to have cells A1 through B3 assigned the following
values:
2,4,8
2, 8,11
How do I create the right hand side of this statement?
Sub test()
Dim b As Workbook
Dim s As Worksheet
Set b = ThisWorkbook
Set s = b.Sheets("Sheet1")
s.Activate
Dim v
v = Array(2, 4, 8)
Dim s
s = Array(2,8,11)
'How to make v and s a two dimensional array?
Dim r As Range
Set r = s.Range(s.Cells(1, 1), s.Cells(2, 3))
r.Value = ??????? 'Assignment here wanted either in terms of v and
s or their 2 dimensional counterpart
End Sub
Don't bother posting a looping solution.
Thanks.
values:
2,4,8
2, 8,11
How do I create the right hand side of this statement?
Sub test()
Dim b As Workbook
Dim s As Worksheet
Set b = ThisWorkbook
Set s = b.Sheets("Sheet1")
s.Activate
Dim v
v = Array(2, 4, 8)
Dim s
s = Array(2,8,11)
'How to make v and s a two dimensional array?
Dim r As Range
Set r = s.Range(s.Cells(1, 1), s.Cells(2, 3))
r.Value = ??????? 'Assignment here wanted either in terms of v and
s or their 2 dimensional counterpart
End Sub
Don't bother posting a looping solution.
Thanks.