+ Reply to Thread
Results 1 to 4 of 4

Combo Box issue

  1. #1
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Combo Box issue

    I have a combo box (Active X) on a sheet that should display a 4 digit year from a list named "Year". Everything works as it should with the exception of the date displayed from the list after it has been selected.

    when you access the list the combo list shows a list of the years from the list, selecting a year will put the selected year in the 'active cell' (Z1). I can then use this for a Vlookup function to access the proped data. The problem I am having is after the date is selected the chosen date (Year) is not displayed. As an example if I select 1994 as the year 1994 is displayed in cell Z1 and using the code shown below I am able to access the vookup data but the date shown in the combo box is shown as 6/16/1905 instead of 1994. I have tried changing the format in the cell and in the code but to no avail. Any suggestions?

    Please Login or Register  to view this content.
    As I said everything works fine its just the selected year does not show up properly.

    Jim O
    Last edited by JO505; 08-28-2015 at 04:51 PM.

  2. #2
    Registered User
    Join Date
    08-18-2015
    Location
    Utrecht, Netherlands
    MS-Off Ver
    2010
    Posts
    69

    Re: Combo Box issue

    Hi,

    Just loose the code? . works for me!

    Regards, Bart

  3. #3
    Registered User
    Join Date
    08-18-2015
    Location
    Utrecht, Netherlands
    MS-Off Ver
    2010
    Posts
    69

    Re: Combo Box issue

    Only use this part of code:

    Range("Z1") = ComboBox1.text

  4. #4
    Forum Contributor
    Join Date
    05-10-2011
    Location
    Central Ohio
    MS-Off Ver
    Excel 2000, and 2010
    Posts
    654

    Re: Combo Box issue

    Thanks to both for the responses.

    I have it working now.

    Jim O

+ 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] combo box issue
    By sput_sput in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-06-2013, 07:12 AM
  2. Combo box issue!
    By james 35 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-05-2013, 06:35 AM
  3. New to VBA, combo box issue
    By arcplus in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-28-2012, 02:39 AM
  4. Combo Box Code Issue
    By Melancholy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-05-2011, 01:13 PM
  5. Combo box Macro Issue
    By HughDonovan in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-31-2011, 08:22 AM
  6. Combo Box Resize Issue
    By GWild in forum Excel General
    Replies: 0
    Last Post: 05-27-2010, 08:17 AM
  7. Combo Box Copy Issue
    By chris_h_465 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-20-2005, 09:05 AM
  8. combo box vba issue
    By Justin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-22-2005, 09:33 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