Hello,
I am working for years with Excel, but for the first time I've started a project using VBA.
I've read a lot (often on this forum), watched tutorials, and played a lot.
Most created functions are working well (after a lot evenings of debugging), but I am struggling now already a whole day on one simple function which doesn't work like I wanted it. I hope you can help me with this.
I have used some comboboxes on the excel sheet (no form), where you can select some information, coming out of another sheet (using ListFillRange function). This works great. But when I select with e.g. combobox1 a value, I want another combobox to be grayed out with the message "not applicable". I use a small sub with the code "ComboBox5.Enabled = False" to make it grayed out. I also change the source data (in some cells on a worksheet), with on the first row "not applicable" (using: If InStr(1, Worksheets("Data").Range("F19").Value, "0", vbTextCompare) = 1 Then
Sheets("Data").Range("D2") = "Not Applicable"). But unfortunately it doesn't update untill I press the combobox drop-down button (in active state).
Does someone knows a trick to get the right message (grayed-out not neccessary) in the right cell or in that particular combobox? I prefer a command to update the combobox.
Thank you very much!
Bookmarks