Hi
I have a bit of an issue.
I have a long list of if statements that are basically as follows:
etc![]()
if Range("A1") = "Mike" Then Range("A1") = "michael" if Range("A1") = "Matt" Then Range("A1") = "matthew"
This list has 40+ names that are defined as something (ie Mike)(taken from external data) but need to be something else (ie michael)
What I want to do is the following:
to avoid the macro going through all 40+ if statements everytime![]()
if Range("A1") = "Mike" Then Range("A1") = "michael" Then ExitSub
My current get around is the following
but it takes up huge amounts of space in the code and probably isnt the most effiecient way of doing it. Plus it doesnt look very good![]()
If Range("A1") = "Mike" Then Range("A1") = "michael" Exit Sub End If
Does anyone know a simple work around?
Bookmarks