My first guess would be a requirement is not being met? In this section of your code you use the same "If" statement twice.
I would think that the string "If Range(requiredCells(i)).Value" is not evaluating to "vbNullString".![]()
For i = LBound(requiredCells) To UBound(requiredCells) If Range(requiredCells(i)).Value = vbNullString Then Range(requiredCells(i)).Value = userInput(prompts(i)) If Range(requiredCells(i)).Value = vbNullString Then Call Mail_workbook_Outlook_2 End If Next i
A second look I see that you reset your "If" satement to "If Range(requiredCells(i)).Value = userInput(prompts(i))", then the second "If" statement would not evaluate to "vbNullString" and the call statement would be ignored.
Bookmarks