+ Reply to Thread
Results 1 to 6 of 6

Userform.listbox populate when dates expire

  1. #1
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Userform.listbox populate when dates expire

    Hello everyone.
    I ask for help in developing a project.

    1) I have a userform with one listbox;
    2) I have two "Test1" and "Test2" worksheets;

    In Test1 I have:
    Column C - Project code
    Column D - Project Name
    Column G - Project start date

    In Text2 I have exactly the same information as Text1 but in column "I" has the date of revision of the project

    Problems:

    Problem1: I need to populate userform.listbox1 with the information on columns C, D and G from sheets ("test1") if date in "G" is (<) then now.
    Problem2: If project code in test1 exist in test2 (same code- Column C) and date in "I" different from blanck/empty or revised date (>) now, then ignore in the userform.listbox1 the project entry of sheet( "test1")
    Problem3: While maintaining the assumption of problem 2, If the date of the skipped projects (e.g.workbook open in another day) is (<) now, then the entry of that project (s) are displayed in userform.listbox1 from test 2

    Thanks in advance for all the help you can give me.
    Miguel
    Last edited by jmaocubo; 03-24-2017 at 05:58 PM.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Userform.listbox populate when dates expire

    Perhaps you could attach an example workbook with all the components and example data.

    I don't follow problems 2 and 3. Please elaborate.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Userform.listbox populate when dates expire

    Quote Originally Posted by AlphaFrog View Post
    Perhaps you could attach an example workbook with all the components and example data.

    I don't follow problems 2 and 3. Please elaborate.
    Hi
    Thanks for the replay.

    After reading your replay, I understood that I was complicating the project.
    I can do everything from the same worksheet.

    Can you help me?
    attached example

    Thank you in advance.

    Miguel
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Userform.listbox populate when dates expire

    Please Login or Register  to view this content.
    Last edited by AlphaFrog; 03-24-2017 at 10:29 AM.

  5. #5
    Registered User
    Join Date
    05-05-2009
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    38

    Re: Userform.listbox populate when dates expire

    AlphaFrog thank you so much
    It worked very well and I've already added it to my remaining code!!!!

    Thanks again.

    Miguel

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Userform.listbox populate when dates expire

    You're welcome.

+ 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] listbox to populate userform
    By adamheon in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-17-2017, 09:41 AM
  2. Listbox and Userform to populate textbox - Help!
    By reyreyreyes in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-22-2015, 01:32 PM
  3. Populate VBA Userform Listbox using SQL Recordset
    By jordan2322 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-15-2013, 06:48 PM
  4. VBA - Populate Listbox based on value selected in another ListBox (On Userform)
    By raaboo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 12-12-2012, 11:18 AM
  5. Populate userform listbox based on value selected in another listbox
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-07-2012, 05:16 PM
  6. how to populate Listbox on userform
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-22-2011, 02:13 PM
  7. Populate userform listbox from access db
    By Nancy Moon in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-01-2006, 05:25 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