Using Excel VBA I'm trying to populate a small set of the cells in my newly created worksheet. When I use the following code:
Sub CreateFormulaDataSheet()
Dim currentWs As Worksheet
Dim formWs As Worksheet
Dim titles As String
Dim valuesArr As Variant
If Not SheetExists("FormulaData") Then
'create new sheet
Set currentWs = ActiveWorkbook.ActiveSheet
With ActiveWorkbook
Set formWs = .Sheets.Add(After:=.Sheets(.Sheets.Count))
formWs.Name = "FormulaData"
formWs.Activate
'populate with default values
valuesArr = Array(1, 3, 6)
Range(Cells(4, 1), Cells(6, 1)).Value = valuesArr
End With
End Sub
What I get is this:
What I want is this:
Why is the Range function only populating the first element in the array?
I know this is only a few cells to update so I could easily set the value of each one individually, but I want to understand why the code I have doesn't work and what the solution is so that next time when I have 50 cells to update, I won't have to have 50 individual cell assignments. ;-)

