Combobox change event not working although code is write

Tifa

New Member
Joined
Dec 15, 2020
Messages
19
Office Version
  1. 2019
Platform
  1. Windows
hello! I m using the below code I m sure it is right but the cell doesn't change when I choose or select an item from my Combobox

how code I fix this?
is it a problem in combo box properties, I guess I tried all of them too!

Private Sub CB_Model_No_1_Change()

Dim product As Worksheet
Set product = ThisWorkbook.Sheets("DeNora Data Entry")

product.Range("A5").Value = Me.CB_Model_No_1.Value

End Sub
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Hi Tifa,

Are you getting any error ?
I used the same code and it's working.

In userform, I used below code.

VBA Code:
Private Sub CB_Model_No_1_Change()
    Dim product As Worksheet
    Set product = ThisWorkbook.Sheets("DeNora Data Entry")
    
    product.Range("A5").Value = Me.CB_Model_No_1.Value
End Sub

Private Sub UserForm_Activate()
    CB_Model_No_1.AddItem "first"
    CB_Model_No_1.AddItem "second"
End Sub

Thanks,
Saurabh
 
Upvote 0
No, errors are appearing at all

but nothing is happening

when I select an item the cells doesn't change!!
 
Upvote 0
If you put STOP as the first instruction in the procedure does it stop there ?

Are you working with merged cells ?
 
Last edited:
Upvote 0
I found the solution!!

in the properties bar the boundcolumn / columncount was set to 10

when I changed it to 1 it worked !!
 
Upvote 0
Solution

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top