Consulting

Results 1 to 2 of 2

Thread: Change properties of a Combobox

  1. #1
    VBAX Newbie
    Joined
    Jul 2007
    Posts
    1
    Location

    Change properties of a Combobox

    In Excel, I am using a comboBox control which currently references a static portion of the spreadsheet for the selectable items included in the pull-down. Now, I want to make the range dynamic -- i.e., if the range of selectable items becomes longer or shorter, that VBA can automatically adjust the properties of the control to include the new range and the "ListRows" property will be adjusted to the same length as the new range.

    I look forward to your comments.

  2. #2
    VBAX Master
    Joined
    Jun 2007
    Location
    East Sussex
    Posts
    1,110
    Location
    The easiest thing to do is to use a dynamic defined name as the ListFillRange and leave the ListRows static - comboboxes look very silly if you set the listrows property too large. Is that acceptable, or do you really want to change the listrows property?
    Regards,
    Rory

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •