+ Reply to Thread
Results 1 to 3 of 3

Not equal to

  1. #1
    Registered User
    Join Date
    02-09-2005
    Posts
    32

    Smile Not equal to

    I have a problem which I hope can be resolved quickly:

    I have a piece of code as follows:

    If ActiveCell.Value = Range("data!G4") Then ...

    What the active cells value is and the value in ("data!G4") does not matter.

    What I wan to be able to do is say

    If ActiveCell.Value

    Not Equal to

    Range("data!G4") Then

    but I cannot find out how to write not equal to!!!


    Cheers,

    Dave

  2. #2
    Forum Expert swatsp0p's Avatar
    Join Date
    10-07-2004
    Location
    Kentucky, USA
    MS-Off Ver
    Excel 2010
    Posts
    1,545
    not equal to is "<>"

    If ActiveCell.Value <> Range("data!G4") Then ...


    HTH
    Bruce
    The older I get, the better I used to be.
    USA

  3. #3
    Registered User
    Join Date
    02-09-2005
    Posts
    32

    Not Equal

    Thanks for that...

    I just couldn't remember!!

    Cheers

+ 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