+ Reply to Thread
Results 1 to 7 of 7

initialize comboboxes value list during sheet activation

  1. #1
    Registered User
    Join Date
    12-11-2008
    Location
    milano
    MS-Off Ver
    365
    Posts
    17

    initialize comboboxes value list during sheet activation

    hello,
    i have some ComboBoxes within a sheet and i need to inizialize their values during sheet activation

    i've already written the statements but i don't know where i have to put them....

    may someone help me?
    Last edited by mfran2002; 12-11-2008 at 09:41 AM.

  2. #2
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    Which type of combo box u hav..

    Forms Control or Control Tool Box

  3. #3
    Registered User
    Join Date
    12-11-2008
    Location
    milano
    MS-Off Ver
    365
    Posts
    17
    i have added a forms combobox onto a worksheet....

  4. #4
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    its a sample code
    modify as per your need


    Please Login or Register  to view this content.
    Assumed that u want to fill the combo box with data in Column A

  5. #5
    Registered User
    Join Date
    12-11-2008
    Location
    milano
    MS-Off Ver
    365
    Posts
    17
    sorry Shijesh Kumar but i do not understand your code
    i am not so skilled...
    i fill my combo statically

    the statements i wrote to fill my ComboBox are the following:

    Sheet1.ComboBox1.Clear
    Sheet1.ComboBox1.AddItem "A"
    Sheet1.ComboBox1.AddItem "B"
    Sheet1.ComboBox1.AddItem "C"

    but i don't know where i have to put them....to fill my combo when i open my file...

  6. #6
    Valued Forum Contributor Shijesh Kumar's Avatar
    Join Date
    05-26-2008
    Location
    Bangalore / India
    MS-Off Ver
    2000
    Posts
    717
    If it is static you can simply assing value...


    Right Click on combo box
    Select Format Control
    In the input Type A1:A5
    In the Linked Cell type B1

    now whatever is there from A1 to A5 will automatically be displayed in the combobox.. no need to write the macros for this...

    U can choose any range ... and hide that...

  7. #7
    Registered User
    Join Date
    12-11-2008
    Location
    milano
    MS-Off Ver
    365
    Posts
    17
    ok, i tried your suggestion but i still have a problem:

    into Format Control i have these tabs:

    Dimension
    Protection
    Property
    Web

    where may i find "input" and "linked cell"?

    furthermore:
    if i mandatorily need to fill my combo with the statements i wrote, where have i to put them?

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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