Results 1 to 10 of 10

Finding the nth non empty cell in a row and returning value to text box vba

Threaded View

jimalya Finding the nth non empty... 07-22-2013, 04:33 PM
tigeravatar Re: Finding the nth non empty... 07-22-2013, 05:17 PM
jimalya Re: Finding the nth non empty... 07-22-2013, 07:47 PM
jimalya Re: Finding the nth non empty... 07-22-2013, 08:00 PM
jimalya Re: Finding the nth non empty... 07-22-2013, 08:20 PM
tigeravatar Re: Finding the nth non empty... 07-23-2013, 11:32 AM
jimalya Re: Finding the nth non empty... 07-23-2013, 11:45 AM
tigeravatar Re: Finding the nth non empty... 07-23-2013, 12:40 PM
jimalya Re: Finding the nth non empty... 07-23-2013, 01:36 PM
tigeravatar Re: Finding the nth non empty... 07-23-2013, 01:41 PM
  1. #1
    Registered User
    Join Date
    05-25-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    11

    Finding the nth non empty cell in a row and returning value to text box vba

    Hey everyone,

    I have a userform that has 7 fields that are connected to an autofilter. On the click of a button it filters the data. I also have 16 other text boxes that will be used to reference data from the resultant row from the filter.

    The following image displays the data prior to the filter.
    Notes_Grid1.PNG

    This image shows the userform with the autofilter data field in. The combo boxes on the left are linked to the filter. The text boxes on the right are linked to the non-contiguous non blank cells adjacent to column G.

    NotesPic.PNG

    Also attached is an image showing the filtered data if that helps.

    The text box with WC1 as the label will be the column header of the data in the first non blank cell and the data of the first non blank cell will be in the text box below that one. The text box with WC2 as the label will contain the column header of the second non blank cell and the text box below it will contain the data from the 2nd cell with data, and so on.

    I've researched several approaches, but they all seem to be using the index function which is not compatible with VBA. If you need the actual file or current code, let me know.

    In a way, it would be treated like an Access database and linking the remaining relative data in the row.

    Thanks in advance,
    Jimalya
    Attached Images Attached Images
    Last edited by jimalya; 07-22-2013 at 04:36 PM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. finding a text string and returning a Y or N
    By wilksy in forum Excel General
    Replies: 3
    Last Post: 05-11-2011, 03:38 AM
  2. finding max value and returning text in different column same row
    By Mark6277 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-10-2009, 01:18 PM
  3. Replies: 6
    Last Post: 07-15-2009, 07:44 AM
  4. Finding text in a list, and returning the row next to it.
    By Hejl82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-22-2008, 02:26 PM
  5. [SOLVED] Finding next empty empty cell in a range of columns
    By UncleBun in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-13-2006, 07:25 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