Consulting

Results 1 to 3 of 3

Thread: Solved: This works horzintally but not vertically?

  1. #1
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location

    Solved: This works horzintally but not vertically?

    How come when I try to run this array to fill down in cells, all the cells get the first one "George Gellert"

    [VBA]Range("D1334").Value = Array("George Gellert", "Bob Gellert", "Tom Gellert", "Bernie Lillis", _
    "Charlie Stough", "", "", "Partial Copies Distribution:", "", "Al Pish Depts 01 and 06", _
    "John Jackson Depts 03 and 10", "Kerry Dambra Dept 15", "Teddy Ignat Depts 15 and 21", _
    "", "", "", "Copy for filing", "", "", "", "", "=Today()")[/VBA]

  2. #2
    MS Excel MVP VBAX Mentor Andy Pope's Avatar
    Joined
    May 2004
    Location
    Essex, England
    Posts
    344
    Location
    You need to transpose your array.

    [vba]Range("D1334") = application.worksheetfunction.transpose(Array("George Gellert", "Bob Gellert", "Tom Gellert", "Bernie Lillis", _
    "Charlie Stough", "", "", "Partial Copies Distribution:", "", "Al Pish Depts 01 and 06", _
    "John Jackson Depts 03 and 10", "Kerry Dambra Dept 15", "Teddy Ignat Depts 15 and 21", _
    "", "", "", "Copy for filing", "", "", "", "", "=Today()")) [/vba]
    Cheers
    Andy

  3. #3
    VBAX Master
    Joined
    Jun 2006
    Posts
    1,091
    Location
    Thank you Andy, you are the best

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •