06-14-2011, 10:56 PM
(This post was last modified: 06-14-2011, 10:59 PM by Brian.Osborne.)
Rather than focusing on what you don't want it to do, focus on what you do want it to do.
If you don't care if it's Fax, View, or Zip and just want to execute code if it's none of these then try this.
Code:
LinkName = LinkObj.GetROProperty ("Text")
If LinkName = "Fax" Then
'insert code that you want executed if it is Fax
ElseIf LinkName = "View"
'insert code that you want executed if it is View
EsleIf LinkName = "Zip"
'insert code that you want executed if it is Zip
Else
'insert code that you want executed if it is none of the above
End If
If you don't care if it's Fax, View, or Zip and just want to execute code if it's none of these then try this.
Code:
LinkName = LinkObj.GetROProperty ("Text")
If LinkName <> "Fax" or LinkName <> "View" or LinkName <> "Zip" Then
'insert code you want executed if it's none of these
End If