I am trying to write a module with the following code
If Name like '*119*' Then
CorrectName = "Macclesfield " & Name
elseif Name like '*118*' Then
CorrectName = "Stockport " & Name
End If
i need to run this code for about a 1000 different outcomes but the code is stopping and highlighting the first ' in the code hope someone can help me sort this out
If Name like '*119*' Then
CorrectName = "Macclesfield " & Name
elseif Name like '*118*' Then
CorrectName = "Stockport " & Name
End If
i need to run this code for about a 1000 different outcomes but the code is stopping and highlighting the first ' in the code hope someone can help me sort this out