View Single Post
  #1  
Old September 4th 08, 11:25 AM posted to microsoft.public.outlook.program_forms
bbnimda
external usenet poster
 
Posts: 94
Default Outlook Script Have Pb with Do While Loop

Hi all

I'm using a custom Outlook form

I this form I use Do while loop, it work fine but Now I need to skip some
item that meet specific conditions so I added an if then loop end if

My working Script
===============================
Do While not (MyItem is Nothing)
Action1
Action2
Action3
loop
===============================

In my New Script I want to skip all Item that have companies name
"COMPNAME"
when I add an other loop inside the "if then" my form don't work and return
message that "do" is missing

===============================
Do While not (MyItem is Nothing)
Action1
Action2
Action3
if MyItem.companies = "COMPNAME" then
loop
end if
loop
===============================

thks for Help


Ads