Function Distribute(SourceCell As Range)
Dim V() As Variant
myrows = Selection.Rows.Count
mycols = Selection.Columns.Count
ReDim V(1 To myrows, 1 To mycols)
For R = 1 To myrows
For C = 1 To mycols
V(R, C) = SourceCell.Value / Selection.Count
Next
Next
Distribute = V
End Function
Function Distribute(SourceCell As Range, OutputRange As Range)
Dim V() As Variant
myrows = OutputRange.Rows.Count
mycols = OutputRange.Columns.Count
ReDim V(1 To myrows, 1 To mycols)
For R = 1 To myrows
For C = 1 To mycols
V(R, C) = SourceCell.Value / OutputRange.Count
Next
Next
Distribute = V
End Function