Thread: instr function
View Single Post
  #1  
Old March 4th 10, 09:07 PM posted to microsoft.public.outlook.program_vba
Joel Allen
external usenet poster
 
Posts: 117
Default instr function

Outlook 2003 SP3

Hi,

I'm trying to find * and ? in the string. Do I have to do two separate if
statements, or can I use some kind of OR statement? This isn't working:

If Instr(1, Item.UserProperties("JobName"), "*" or "?", vbTextCompare) 0
Then

MsgBox "Sorry, you cannot use the * or ? character"

Exit Sub

end if



Thanks,
Joel


Ads