if...then

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

and then it stops to me
sorry for the previous email. hit enter instead of tab to go to the next
field.

here's the problem:
I have :
If strMyInput4 = "no" Then

AND

strBody = objItem.HTMLBody
strBody = Replace(strBody, "######", "nobody else")
objItem.HTMLBody = strBody
objItem.Display

I understand If-then and replace but somehow they aren't working together
here....
How do I do it?
 
Hi Bart,

in general:

if (s.th. is true) then
do s.th.
[else
do s.th. else]
end if

The part in [] is optional.

In your case there is no need for the AND-Operator.
 
Woeha!!!

I think this solves my problem.
I really need some lessons in vb lol.

Thank you Michale for your fast and accurate response!

Michael Bauer said:
Hi Bart,

in general:

if (s.th. is true) then
do s.th.
[else
do s.th. else]
end if

The part in [] is optional.

In your case there is no need for the AND-Operator.
 
Back
Top