+ Reply to Thread
Results 1 to 2 of 2

Comparing strings value

  1. #1
    Registered User
    Join Date
    11-20-2016
    Location
    London
    MS-Off Ver
    2007
    Posts
    5

    Comparing strings value

    Hi everyone,

    I am having a pb when I want to compare a cell value that contains a text with a string variable. I do not get any error message but the macro is not working properly.

    The aim of the following macro is to count the number items according to diverse criteria:

    Please Login or Register  to view this content.
    I could "follow" my code with F8 button and could see that when Cells(i, 8).Value = itemtype is true, VBA does not consider it as true and goes directly to Endif.


    Thanks in advance for your help!

  2. #2
    Registered User
    Join Date
    11-08-2015
    Location
    Croatia
    MS-Off Ver
    2016
    Posts
    53

    Re: Comparing strings value

    Can you give us the workbook so that we can try the code with the data?
    You can help me too.

+ 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. Comparing Two Strings using Macro in Excel
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-23-2013, 05:45 AM
  2. [SOLVED] Comparing 2 Strings and output the difference
    By alugo004 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-25-2013, 11:52 AM
  3. [SOLVED] partially comparing strings vba
    By joetinger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-19-2012, 08:54 PM
  4. Comparing text strings
    By gmalpani in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 12-18-2011, 01:59 PM
  5. comparing strings/same-Need Excel expert
    By Pretty Tree in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-04-2009, 03:11 PM
  6. Comparing Strings
    By dadio25 in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 03-30-2009, 11:13 AM
  7. [SOLVED] Comparing text strings in cells
    By Andy in forum Excel General
    Replies: 0
    Last Post: 12-07-2005, 12:20 PM
  8. Comparing slightly different strings
    By carg1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-29-2005, 07:55 PM

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