+ Reply to Thread
Results 1 to 2 of 2

Equality of a range and a double variable in VBA

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Tehran, Iran
    MS-Off Ver
    Excel 2013
    Posts
    7

    Equality of a range and a double variable in VBA

    I have a For loop in which I pass 2 values to 2 variables ( Origin & Destination),then I want to test the equality of a range and these variables in a array formula. Here's my code:

    Please Login or Register  to view this content.
    When I run this code, the answer is N/A! I think the problem lies in the equality part!
    I'd appreciate any help!

  2. #2
    Registered User
    Join Date
    06-29-2012
    Location
    Tehran, Iran
    MS-Off Ver
    Excel 2013
    Posts
    7

    Re: Equality of a range and a double variable in VBA

    There is a simple answer! I can't just use a variable in a spreadsheet! This is the way to fix this:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 5
    Last Post: 11-29-2010, 06:25 PM
  2. Idenitifying row which matches equality condition
    By axecel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-12-2010, 12:03 PM
  3. [SOLVED] Two apparently identical cells in excel fail an equality test,Y?
    By shane in forum Excel General
    Replies: 1
    Last Post: 08-04-2006, 03:20 PM
  4. How do I calculate the Root Mean Square (RMS) of line of equality
    By aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa in forum Excel General
    Replies: 1
    Last Post: 06-23-2005, 08:05 AM
  5. Replies: 2
    Last Post: 04-15-2005, 07:06 AM

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