Hi ideally you should split the macros up
sub Firstpart()
if salary found then
macro1
else
macro2
end if
End sub
Sub Macro1()
do what ever
then call next macro
Macro2
End sub
Sub Macro2()
do what ever
End sub
or you can use the goto statement but this is throwned upon
Sub Trythis()
if salary found then
'allow code to continue
else
goto otherpart
end if
Put code here for whatever you will do if salary found
otherpart:
put code here for what to do when salary not found (this will also be used for the part where salary is found)
End sub
Bookmarks