+ Reply to Thread
Results 1 to 3 of 3

excel array

  1. #1
    Marina Limeira
    Guest

    excel array

    How I test if the name is in a array?

    I try


    RR= array("John", "mary")

    IF A in RR then
    msgbox("yes")
    end if

    but the IN in if not execute..

    thanks for help me

    Marina




  2. #2
    Dave Peterson
    Guest

    Re: excel array

    You have a response to your other post.

    Marina Limeira wrote:
    >
    > How I test if the name is in a array?
    >
    > I try
    >
    > RR= array("John", "mary")
    >
    > IF A in RR then
    > msgbox("yes")
    > end if
    >
    > but the IN in if not execute..
    >
    > thanks for help me
    >
    > Marina


    --

    Dave Peterson

  3. #3
    Bob Phillips
    Guest

    Re: excel array

    rr = Array("John", "mary")

    If Not IsError(Application.Match("mary", rr, 0)) Then
    MsgBox ("yes")
    End If


    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "Marina Limeira" <marinalimeiraa@yahoo.com.br> wrote in message
    news:OItXcGRHGHA.2036@TK2MSFTNGP14.phx.gbl...
    > How I test if the name is in a array?
    >
    > I try
    >
    >
    > RR= array("John", "mary")
    >
    > IF A in RR then
    > msgbox("yes")
    > end if
    >
    > but the IN in if not execute..
    >
    > thanks for help me
    >
    > Marina
    >
    >
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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