+ Reply to Thread
Results 1 to 10 of 10

Combo Box

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Combo Box

    Hi All,

    I have a combo box with the list fill range as per below. I need a code that If I select let's say week "9/16/2013" in the combo box and it will populate cell A1 with week "9/9/2013"

    I need a code that will get the prior date of the selected date from the combo box.

    Week
    9/2/2013
    9/9/2013
    9/16/2013
    9/23/2013
    9/30/2013
    10/7/2013

    Your feedback is highly appreciated.


    Thanks much!

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Combo Box

    Hi Ivhee,

    here's one way:

    Please Login or Register  to view this content.

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,945

    Re: Combo Box

    @ Imran310, what was the purpose of that post? Im sure that the OP knows what a combo box is used for, else they would noy have asked the question?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Combo Box

    Hi Berlan,

    Thanks. Have tried the code but didn't work

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Combo Box

    Ivhee, have you change the name ComboBox1 to the specific name of your combo box. Also, did you put the code within the worksheet module it is used in?

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Combo Box

    By the way, did you use an ActiveX control? Sorry for not checking that earlier.

  7. #7
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Combo Box

    Hi Berlan,

    Have tried it again with some changes and it worked!! Thanks a lot for your help.

  8. #8
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Combo Box

    Please find attached a combo box workbook example, which should do what you asked for. I hope it can be of help
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Combo Box

    Ivhee, I did not see your post before I posted the workbook example.

    Glad it worked out

  10. #10
    Registered User
    Join Date
    03-21-2013
    Location
    Philippines
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Combo Box

    Hi Berlan,

    Thanks very much for your help.

+ 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. combo box user form code for two combo boxes
    By robert.begley1 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 12-01-2012, 02:25 PM
  2. [SOLVED] How to reference a second Combo box’s output based on previous Combo Box’s Row source
    By subbby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-28-2012, 11:27 AM
  3. Replies: 9
    Last Post: 11-11-2006, 05:46 AM
  4. Filtered list for Combo Box ListFillRange - Nested Combo Boxes
    By DoctorG in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-23-2006, 08:20 AM
  5. Replies: 0
    Last Post: 02-15-2005, 06:45 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