VBA and operator
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: VBA and operator

  1. #1
    New Member
    Join Date
    Mar 2002
    Location
    Nanaimo, BC
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    what is the syntax for the VBA and operator... for example

    If a=b AND c=d Then

    what is the AND syntax???
    Thanks,
    Kyle

  2. #2
    MrExcel MVP Jay Petrulis's Avatar
    Join Date
    Mar 2002
    Location
    Chicago, IL USA
    Posts
    2,040
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    On 2002-03-24 13:42, kwaring wrote:
    what is the syntax for the VBA and operator... for example

    If a=b AND c=d Then

    what is the AND syntax???
    Thanks,
    Kyle
    Hi Kyle,

    What you wrote is exactly what you would do.

    If a = b And c=d then do something

    or, with an If...Then...Else construct

    If a = b And c=d then
    do something
    else
    do something else
    end if

    Regards,
    Jay

  3. #3
    New Member
    Join Date
    Mar 2002
    Location
    Nanaimo, BC
    Posts
    49
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Really??? Hmmmm something else must've been wrong!!! Thanks!

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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

 

 
DMCA.com