Group: microsoft.public.word.vba.general
From: =?Utf-8?B?RWxhaW5lIEou?=
Date: Tuesday, April 08, 2008 12:04 PM
Subject: ending multiple if/with statements

I have what I know has to be a very basic programming question. But I always
have trouble with this and have not been able to locate an answer that has
made it clear to me.

When you have multiple if and with statements: what is the proper sequence
to end them.

for example

if
with
with
if

I need to end the two "with" statements and the last "if", but not the first
one just yet. what is the proper sequence to end them?

end with
end with
end if

OR

end if
end with
end with

If someone could explain how to know what the sequence should be, I would
greatly appreaciate it. Thanks.