Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Comparing String Values

Perhaps..

If Value_of_Cell < Title Then Broken = True

--
Jim Rech
Excel MVP
"Ben H" wrote in message
...
| Hi All! I am attempting to add in a bit of code that will check to make
sure
| that the file called and the file that is opened are the same. In other
| words, the title (minus hte .xls) of the file and the cell A1 should have
| the same name.
|
| So far the basic "If Value_of_Cell Is Not Title Then Broken = True"
doesn't
| work
| or this: "If Value_of_Cell = Not Title Then Broken = True"
|
| Title is the name of the file which is being passed it
| Value of Cell is the value of A1.
|
| Under debug mode, the values are the same but the if statement is saying
| "Type mismatch"
|
| Thanks!


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Comparing the first 2 characters of a coloumn to a string Jaime Excel Worksheet Functions 1 April 16th 08 06:28 AM
Help with Comparing values and retrieving values in Excel!!!!!! [email protected] Excel Worksheet Functions 1 November 17th 06 12:21 AM
Comparing values between columns only when there are values in bot Mark K Excel Worksheet Functions 1 February 19th 06 06:47 PM
Comparing values Dirk_Bob Excel Discussion (Misc queries) 2 August 24th 05 09:39 PM
Question about comparing mixed case string values TBA[_2_] Excel Programming 4 January 17th 04 06:32 PM


All times are GMT +1. The time now is 07:50 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"