I have a macro that builds an e-mail list (from Chris Rae) that I have modified. One section contains the following code:
‘ Add Office Services
If regional(0) = “Hampshire” Then
myMailItem.Recipients.Add “Adams, Julie”
End If
If regional(0) = “Kent” Then
myMailItem.Recipients.Add “Pennels, Debbie”
End If
If regional(0) = “Sussex” Then
myMailItem.Recipients.Add “Robertson, Suzanne”
End If
If regional(0) = “Isle of Wight” Then
myMailItem.Recipients.Add “Kitching, Janette”
End If
This works okay but is there any way to shorten this selection process – by using a loop or counter?