+ Reply to Thread
Results 1 to 9 of 9

Simple ComboBox Question

Hybrid View

  1. #1
    Registered User
    Join Date
    04-22-2004
    Posts
    6
    I should have been more clear..


    On sheet1 I have a Combobox (the control toolbox, not the Forms one)

    and on sheet2 I have another ComboBox (again from the control toolbox)

    I need the Combobox on Sheet2 to mirror the ComboBox on sheet 1.

    So basically Sheet1.comboxbox1.value will always = Sheet2.ComboBox1.value

    I know, I know... i should be able to figure this out... but it's been bugging me for a while.

  2. #2
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    double click checkbox in Sheet1(design mode) and paste the below code


    Private Sub CheckBox1_Click()
    Sheets("Sheet2").CheckBox1.Value = ActiveSheet.CheckBox1.Value
    End Sub

  3. #3
    Registered User
    Join Date
    04-22-2004
    Posts
    6
    I tried that...

    unfortunately it's not working...

  4. #4
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    Is there any error message, if there is no error message then I think you didnot past the code in correct location

  5. #5
    Registered User
    Join Date
    04-22-2004
    Posts
    6
    Private Sub ComboBox1_Change()

    Sheets("Sheet1").ComboBox1.Value = Activesheet.ComboBox1.Value

    End Sub



    This is what I have... oh and no error message...

  6. #6
    Registered User
    Join Date
    04-22-2004
    Posts
    6
    nvermind... I figured it out... I did have it in the wrong place.

  7. #7
    Forum Contributor
    Join Date
    11-09-2004
    Posts
    451
    If there is no error that means it is working. How many comboboxes do you have in eachsheets.

    Try to use this code, just seeing whether the code is invoked. It will alert "Hello I am working" if it is invoked.

    Private Sub ComboBox1_Change()

    msgbox "Hello I am working"

    Sheets("Sheet1").ComboBox1.Value = Activesheet.ComboBox1.Value

    End Sub

+ 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