Results 1 to 3 of 3

The logic of OR

Threaded View

  1. #1
    Registered User
    Join Date
    03-31-2009
    Location
    Auburn Alabama
    MS-Off Ver
    Microsoft Office Excel 2007 (Windows)
    Posts
    99

    The logic of OR

    Hi,

    Can someone tell me which operator works in VBA the way the OR operator works in functions?

    I want to write an IF statement that will evaluate whether a variable is equal to any of the three punctuation marks ".", "?", or "!". But I'm not sure how to code it. I attempted the following:

    If Character = "." OR "?" OR "!" Then
    Basically what I want to happen is, if the variable Character is equal to one of those three punctuation marks, a specific action will be taken, etc, etc.

    Thanks a lot!
    Last edited by CrazyFileMaker; 04-16-2009 at 06:08 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1