J
Jake Marx
Hi Beto,
You could do something like this:
Sub test()
Dim Names As Variant
Names = Array("N1", "N2", "N3")
Sheets("Sheet1").Range("A1:C1").Value = Names
End Sub
BTW, you should probably use a different variable name than Names, as Names
is the name of a collection of Name objects. In this case, you may want to
use vNames or avNames (v for Variant or av for "array of Variants").
--
Regards,
Jake Marx
MS MVP - Excel
www.longhead.com
[please keep replies in the newsgroup - email address unmonitored]
You could do something like this:
Sub test()
Dim Names As Variant
Names = Array("N1", "N2", "N3")
Sheets("Sheet1").Range("A1:C1").Value = Names
End Sub
BTW, you should probably use a different variable name than Names, as Names
is the name of a collection of Name objects. In this case, you may want to
use vNames or avNames (v for Variant or av for "array of Variants").
--
Regards,
Jake Marx
MS MVP - Excel
www.longhead.com
[please keep replies in the newsgroup - email address unmonitored]