Application.WorksheetFunction.Exact

Azurai

New Member
Joined
Feb 16, 2020
Messages
6
Office Version
  1. 2016
Platform
  1. Windows
Hi all..

Is there another option in vba codes to compare 2 cells whether it is "TRUE" or "FALSE"? Because it didn't work if I'm using Application.WorksheetFunction.Exact()

Thank you for your help.
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
By true or false, do you mean return true or false if both or either of the cells is true, or true or false when comparing the cells?
 
Upvote 0
Thank you for your fast response!

I mean just like this but in the form of VBA codes, because I want to process using macro
Book1
ABC
112345TGUFALSE
234267BGHTRUE
312345TGU
Sheet1
Cell Formulas
RangeFormula
C1C1=EXACT(A1,A2)
C2C2=EXACT(A1,A3)
 
Upvote 0
That is not case sensitive, so does not work in the same way as the EXACT function
 
Upvote 0
It works with me.

If I type foobar A1 and FOOBAR into A2 and =A1=A2 into C1, it returns TRUE
 
Upvote 0
But what happens if you use exact?
 
Upvote 0
I see what you mean.

Exact is case sensitive and have become too used to not worrying about the case, as it has never been important.

In VBA code I always use Upper to make sure that all case is the same and irrelevant.
 
Upvote 0
It's one of the differences between Xl & VBA, by and large Xl is not case sensitive, whilst VBA is.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top