Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question about comparing mixed case string values
What is the command that tells VBA to treat uppercase and lowercase
characters as the same? TIA. -gk- |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question about comparing mixed case string values
At the top of the module, use
Option Compare Text This will cause all text comparisons to be case insensitive. -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "TBA" wrote in message ... What is the command that tells VBA to treat uppercase and lowercase characters as the same? TIA. -gk- |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question about comparing mixed case string values
What do you mean by "treat" them the same? What do want Excel to do? HTH
Otto "TBA" wrote in message ... What is the command that tells VBA to treat uppercase and lowercase characters as the same? TIA. -gk- |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question about comparing mixed case string values
Either upshift them
UpCase(Range("A1").Value) or downshift them LCase(Range("A1").Value) -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "TBA" wrote in message ... What is the command that tells VBA to treat uppercase and lowercase characters as the same? TIA. -gk- |
#5
Posted to microsoft.public.excel.programming
|
|||
|
|||
Question about comparing mixed case string values
As stated,
Option Compare Text answers the question asked, but you might not need it. Also look in VBA help at the strcomp function. -- Regards, Tom Ogilvy TBA wrote in message ... What is the command that tells VBA to treat uppercase and lowercase characters as the same? TIA. -gk- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Need to Change Case from Mixed to Caps | Excel Discussion (Misc queries) | |||
How to change mixed case to upper case in Excel for all cells | Excel Discussion (Misc queries) | |||
Question about comparing 2 cell values | Excel Discussion (Misc queries) | |||
Comparing Sheets while ignoring Case. | Excel Discussion (Misc queries) | |||
Problem with copying variable(s) to cell(s) and converting strings to mixed case | Excel Programming |