+ Reply to Thread
Results 1 to 2 of 2

Delete array elements from 1 column if they appear in another column. Both column in array

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

    Delete array elements from 1 column if they appear in another column. Both column in array

    Hi all

    due to an addition of data in a control workbook the displayed elements in a dynamic userform, (courtesy of GregM from this site), have become too many to display due to screen size. As a workaround to avoid a major redesign I want to limit a displayed column by splitting it into 2.

    The problem is though that if the date elements are not present in column 3 they are lost to many other sections of the database.

    It is for that reason, as the the array is collected, or just before completion, I would like to limit the elements in Column 3 by deleting (or not adding to array) if a date entry also appears in column 6. I'm not sure does this fall into the category of redimming the first element of an array.

    Limiting their entry into to the array is probably the way to go and I'll keep looking at that.

    Any pointers appreciated, I have tried a few methods including limiting the number of rows when dealing when column3 but none successful.

    The array is collection by UDF

    Please Login or Register  to view this content.
    mvaEmployeeData is array format Variant/Variant (1 to 21, 1 to 6)

    And a dummy workbook attached. The yellow area denotes the original limits of the database

    In an ideal world the proper solution would be that if entries exceed a specific number a second (overspill) column is created, moving everything across, but that is for another day
    Attached Files Attached Files
    Last edited by nigelog; 04-04-2019 at 12:00 PM.

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

    Re: Delete array elements from 1 column if they appear in another column. Both column in a

    Sorted - stopped the entries from being entered into the array in the first place.

    Please Login or Register  to view this content.

+ 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. Function to delete a selected Row/Column in an array
    By LeoDan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-17-2016, 06:08 PM
  2. Replies: 3
    Last Post: 03-07-2016, 09:54 PM
  3. Replies: 5
    Last Post: 11-24-2015, 08:15 AM
  4. [SOLVED] 2 Column Lookup with 6 Column array Col index number is Varies Within Entire Array
    By Weasyb in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-05-2015, 12:54 PM
  5. Replies: 0
    Last Post: 01-14-2014, 06:35 PM
  6. Delete row if value(array) doesnt exist in column
    By wobaby in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-24-2009, 02:34 AM

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