Well, thats down to user error if it is :D
Actually, would the duplicate name be really hard to implement? (Once i go through and change the names to the same like the example one)
Thanks
Private Sub buttonReplace_Click()
If listboxWeek.ListIndex >= 0 And listboxDuty.ListIndex >= 0 Then
If Me.textboxReplacement = textboxReplacement.Value Then
If Me.textboxReplacement = "" Then
MsgBox "You must type a name into the Replacement box to make a replacement"
Else
Sheets("Sheet1").Cells(listboxDuty.ListIndex + 2, listboxWeek.ListIndex + 2) = Me.textboxReplacement
End If
End If
End If
End Sub
I've made it so that if its blank it comes up with the error too
Bookmarks