+ Reply to Thread
Results 1 to 2 of 2

Set a value from a combobox as default.

  1. #1
    Registered User
    Join Date
    02-28-2010
    Location
    Brussels
    MS-Off Ver
    Excel 2007/2010
    Posts
    1

    Post Set a value from a combobox as default.

    I have an Excel workbook with 2 sheets.

    Calculator
    Pricelist

    On the Calculator sheet there are 15 comboboxes. (made using insert, form control, combobox) The content of these comboboxes is taken from the pricelist sheet. It is each time the same function. When the user chooses a value in this combobox, he puts in the quantity and automatically the workbook will make a count.

    It is important to keep the pricelist in that Excel sheet. I do not wan't to set this price list inside the VBA code.

    When this workbook is used, all the comboboxes are chosen. I would like to have a reset command button which allows me to reset all these comboboxes to their initial value.

    How can this be done in VBA?

    I used this:
    ComboBox1_Change.ListIndex = 4
    But it does not work.

    Thank you.

  2. #2
    Forum Expert pike's Avatar
    Join Date
    12-11-2005
    Location
    Alstonville, Australia
    MS-Off Ver
    2016
    Posts
    5,330

    Re: Set a value from a combobox as default.

    Hi Lucky555
    what is the combobox name and can you post all of the code?
    Please Login or Register  to view this content.
    should work in theory
    If the solution helped please donate to RSPCA

    Site worth visiting: Rabbitohs

+ 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