+ Reply to Thread
Results 1 to 4 of 4

Array: Inserting values to cells without loops

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    11

    Array: Inserting values to cells without loops

    Hello,

    I tried the following code to insert values to some cells, but it didn't worked as intended:

    Please Login or Register  to view this content.
    It "pasted" only the first value of the matrix ("0") in all cells C4:C6.

    Could any one help-me? I would like to avoid loops, if possible.

    Thank you

  2. #2
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: Array: Inserting values to cells without loops

    Hi Et_Dux,
    try to use a two-dimensional array
    Please Login or Register  to view this content.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Array: Inserting values to cells without loops

    Hello Friend.

    You have created a Horizontal array and are saving it into a vertical selection.

    If you modified your selection to "C4:D6" you would see your array saved three times.

    You need to Transpose your array.

    Please Login or Register  to view this content.
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  4. #4
    Registered User
    Join Date
    09-06-2012
    Location
    Brazil
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Array: Inserting values to cells without loops

    Wow! thank you, guys!! Cheers!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] How to fill an Array with values from Range of cells, skip cells then add more values.
    By jrtraylor in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-04-2017, 06:27 PM
  2. Highlighting range of cells based on an array if-statement (not using loops)
    By clabulis in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2014, 02:23 PM
  3. [SOLVED] inserting a custom function in a cell using variables and loops
    By ajm1991 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-15-2014, 01:41 PM
  4. [SOLVED] array loop that loops through another array
    By Bob1980 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 02-19-2013, 02:42 PM
  5. Excel 2007 : nested array loops
    By cranswick in forum Excel General
    Replies: 1
    Last Post: 06-11-2011, 02:14 AM
  6. Creating an Array using Loops
    By lee2k60 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-09-2010, 10:25 AM
  7. Inserting Values in a Multidimensional Array from Two Different Controls
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-08-2006, 05:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1