+ Reply to Thread
Results 1 to 2 of 2

Combobox not working

  1. #1
    Registered User
    Join Date
    06-26-2011
    Location
    Dubai
    MS-Off Ver
    Excel 2007
    Posts
    22

    Combobox not working

    Hi. This is the first time i am making a user form in vba in excel 2007. The problem is I made a combo box for selecting the date. I then coded it as follows:

    Private Sub UserForm_Initialize()

    DateOfEntry.Value = ""

    With DateOfEntry

    .AddItem "1"
    .AddItem "2"
    .AddItem "3"
    .AddItem "4"
    .AddItem "5"

    End With

    There are other parts of the form also, and other combo boxes but i am posting this only. When i ran the form for the first time, everything worked fine. but then after making some changes i ran the form, all the drop down lists have stopped showing the lists. Can someone suggest what can be the probable issue? Thanks in advance.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Combobox not working

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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