+ Reply to Thread
Results 1 to 4 of 4

output array(1,4) without inner loop

  1. #1
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    output array(1,4) without inner loop

    The following code loops through 3 named worksheets used ranges and if columns c and d both = 5 then copy the entire row to sheet 21

    I can list the arrays and find the array "rows" i require to output but I am struggling with how to output the array called arr3 to sheet without looping

    any pointers appreciated

    Please Login or Register  to view this content.
    j was fixed to 4 columns but really should be variable per sheet
    Last edited by nigelog; 09-12-2019 at 07:25 AM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: output array(1,4) without inner loop

    How does j vary with each sheet? Some examples please.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert rorya's Avatar
    Join Date
    08-13-2008
    Location
    East Sussex, UK
    MS-Off Ver
    365 Ent Monthly Channel / Insiders Beta
    Posts
    8,915

    Re: output array(1,4) without inner loop

    The first argument to Resize is the number of rows. Assuming you want to output it as a row, not transpose it, you should be using .Resize(, Ubound(arr3))
    Rory

  4. #4
    Forum Expert nigelog's Avatar
    Join Date
    12-14-2007
    Location
    Cork, Ireland
    MS-Off Ver
    Office 365 Windows 10
    Posts
    2,286

    Re: output array(1,4) without inner loop

    Spot on Rory, thanks for that, I was going around in circles

    @Richard - only 2 or 3 columns but not required now, thanks

+ 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] VBA to loop through cell-defined range and paste table output after each loop.
    By mscott123 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-18-2019, 03:41 AM
  2. VBA array input array output problem
    By financerelated in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-29-2017, 04:07 PM
  3. VBA using for-next loop to produce following output
    By pinkalpaca in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-22-2016, 12:42 PM
  4. [SOLVED] Array to embed formula and if number of output is met output Blank
    By ywang in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-29-2015, 02:34 AM
  5. Array function only displays first value of array as output
    By q-tip in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-04-2013, 12:51 PM
  6. [SOLVED] Excel 2003 Array as input - how to place output in a second array?
    By theelkhunter in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-10-2013, 02:04 PM
  7. Do Loop with variable output
    By tubbsy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2008, 01:27 PM

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