Hi, I have set up a message box to come up under a certain condition, but when I click the OK button it keeps appearing. I'm pretty sure it's because the focus is set to a value in a listbox, which is what invokes the message box, and each time I click OK this behaviour repeats, resulting in the message box looping. I'm a beginner to all of this, I'll attach the document. The code in question is in Sheet1 (BM) and the segment of code is within this as follows:
If Me.ListBox1.Value = "AFW" And Cells(1, i) <> "AFW" Then
MsgBox "No specific tests have been created for this wizard, please update the script"
Else
'hide and exclude column
Columns(i).Hidden = True
Cells(4, i) = "x"
Excuse the messiness of the code, as I said I'm new to this and just want to get it working for the moment.
Thanks so muchBM - All Wizard Ribbons_v3.xlsm
Bookmarks