+ Reply to Thread
Results 1 to 3 of 3

Looking for help in vba with combobox lists

  1. #1
    Registered User
    Join Date
    01-04-2016
    Location
    BARRIE, ONTARIO
    MS-Off Ver
    2007
    Posts
    2

    Looking for help in vba with combobox lists

    CODE IS AS FOLLOWS:

    'CLEAR PULLDOWN LIST FOR SELECTION YEAR
    UCD_SELECTIONYEAR.Clear

    'RESETS YEAR SELECTION LIST
    Do
    With UCD_SELECTIONYEAR
    .AddItem UCDSEL_YEAR
    End With
    COUNTER_A = COUNTER_A + 1
    UCDSEL_YEAR = UCDSEL_YEAR - COUNTER_A
    Loop Until UCDSEL_YEAR <= 1990

    THE GOAL WAS TO DISPLAY A YEAR STARTING AT 2016 AND ENDING AT 1990. CURRENT OUT PUT IN LIST IS 2016,2015,2013,2010,2006,2001,1995.

    IF POSSIBLE THE BEST RESULT WOULD BE A LOOP THAT OUTPUT VALUES FOR EACH YEAR FROM 1990 TO CURRENT SELF UPDATING CHECKING AGAINST COMPUTER CLOCK.

    PLEASE LET ME KNOW WHERE I WENT WRONG I AM NEW HERE, ALSO NEW CODER, AND NEED HELP.

    THANKS IN ADVANCE
    MATTHEW,

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: Looking for help in vba with combobox lists

    could be like this

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    01-04-2016
    Location
    BARRIE, ONTARIO
    MS-Off Ver
    2007
    Posts
    2

    Re: Looking for help in vba with combobox lists

    Thank leotaxi I found my stupidity with the counter_a increasingly decreasing my year output.

    removed counter_a and am now running a loop with ucdsel_year = ucdsel_year -1

+ 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. Dependent Lists from Cells to UserForms ComboBox
    By vostokoved in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-28-2013, 03:43 AM
  2. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  3. ComboBox for which lists are empty when opening the file
    By Magic_Doctor in forum Excel General
    Replies: 2
    Last Post: 07-11-2009, 10:42 AM
  4. Make lists in Combobox (userform) depend on each other
    By nalfin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-17-2009, 07:24 PM
  5. different lists in a combobox
    By raw in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-04-2007, 12:08 AM
  6. [SOLVED] Number Formatting in ComboBox lists
    By Drummer361 in forum Excel General
    Replies: 0
    Last Post: 08-07-2006, 02:15 PM
  7. ComboBox Lists
    By Corey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-29-2006, 06:20 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