Fill an array down a row vice columns

jeffreybrown

Well-known Member
Joined
Jul 28, 2004
Messages
5,145
With the macro below the first Array will fill from G1:I1, but the second just puts One down G1:G3.

Is there a way to fill down the row instead on the columns? I know I'm probably missing something obvious.

Code:
Sub FillDown()
    Range("G1:I1") = Array("One", "Two", "Three")
    Range("G1:G3") = Array("One", "Two", "Three")
End Sub
 

Some videos you may like

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce

p45cal

Well-known Member
Joined
Nov 10, 2009
Messages
4,763
off top of head, so untested:

Range("G1:G3") = application.transpose(Array("One", "Two", "Three"))
 

Watch MrExcel Video

Forum statistics

Threads
1,109,429
Messages
5,528,705
Members
409,830
Latest member
KT50

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top