+ Reply to Thread
Results 1 to 4 of 4

Multi Dimensional Array

  1. #1
    Registered User
    Join Date
    11-09-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    59

    Multi Dimensional Array

    I have code with a multi dimensional array. The code searches for lines that have a certain number in a certain cell. When the array is pasted in a new worksheet, empty lines of data are kept. Is there a way for the array to skip rows that don't meet my if statement?

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Re: Multi Dimensional Array

    Perhaps see next code : NOT TESTED
    Your code seems curious as is done a test like
    Cells(i, 3).Value <> "0"
    while column "C" do not have "0"

    and CStr(s) do not have any value ...!


    Please Login or Register  to view this content.
    - Battle without fear gives no glory - Just try

  3. #3
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    6,002

    Re: Multi Dimensional Array

    Try it like this:

    Please Login or Register  to view this content.
    Bernie Deitrick
    Excel MVP 2000-2010

  4. #4
    Registered User
    Join Date
    11-09-2018
    Location
    USA
    MS-Off Ver
    365
    Posts
    59

    Re: Multi Dimensional Array

    Thanks, Bernie it works!

    Bill

+ 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. Help converting one-dimensional array to multi-dimensional array
    By puzzlelover22 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2016, 06:48 AM
  2. Set up a multi-dimensional array
    By penfold1992 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-04-2013, 04:28 AM
  3. [SOLVED] Dim multi dimensional array
    By jdfjab in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-06-2012, 09:08 AM
  4. Declaring Multi-Dimensional Array
    By Phil_V in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2008, 08:43 AM
  5. [SOLVED] Multi Dimensional Array
    By andym in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-10-2006, 03:29 AM
  6. [SOLVED] Multi-dimensional Array Referencing
    By Fred Kalil in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2005, 09:05 AM
  7. Multi-Dimensional Array Let & Get
    By Trip in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-21-2005, 04:05 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