Hi Everyone!
New to the forum, Excel, VBA and Macros so please go easy on me! Iv recently started making some VBA userforms for work and iv come to enjoy the little projects Iv been working on and learn as I go along. I have been using Google/Youtube etc for most of my basic needs. My code is a mess but for the most part gets the job done.
Iv come across an issue and iv been at it for 2 days now with little to no results so im here to ask the experts for advice. I have a client userform with around 40 Comboboxes each with 3 options (Pass,Fail,N/A). I need the userform to...
If all Comboboxes are "Pass" or "N/A" then
Textbox = "Pass"
If a single Combobox is "Fail" then
Textbox = "Fail"
I need the textbox to update after each selection of a combobox option.
The current Code I have been testing / messing with is as follows (below) however this updates the textbox based on the most recent combobox input.
Private Sub ComboBox1_Change()
If ComboBox1.value = "Fail" Then
TextBox10.value = "Fail"
Else
TextBox10.value = "Pass"
End If
End Sub
Hopefully this all makes sense! Any advice would be great. Thanks!
Bookmarks