IF is true then resume not next line but one after?

  • Thread starter Thread starter ianripping
  • Start date Start date
I

ianripping

I have the statement:-

val1 = range("a1").value
i now want to say if val1 = "" then miss next line and carry on.

Cany anybody assist
 
Hi!

You could turn it round:

if val1<>"" then {do the next line}

else {do the one after}

end if
 
If val1 <> "" Then Msgbox "This is next line"

HTH. Best wishes Harald
 
Ian:

You're right to be sceptical of my suggestion.

For some reason I turned your logic into an "either-or".

If the second line is always going to happen, irespective of whethe
Val1="", then Harald Staff's your man.

Al
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top