I have the following to see if a string variable is in call caps:
is there a faster way vs. "If UCase(var1) = var1"?Please Login or Register to view this content.
I have the following to see if a string variable is in call caps:
is there a faster way vs. "If UCase(var1) = var1"?Please Login or Register to view this content.
You either quit or become really good at it. There are no other choices.
Here is a formula solution
In B1
Formula:Please Login or Register to view this content.
v A B 1 APPLE Entire word is in CAPS 2 Apple Entire word is in not in caps 3 APPLe Entire word is in not in caps 4 TABLE Entire word is in CAPS
If you like my answer please click on * Add Reputation
Don't forget to mark threads as "Solved" if your problem has been resolved
"Nothing is so firmly believed as what we least know."
--Michel de Montaigne
Not much but bit faster.
See also StrComp function with BinaryCompare.Please Login or Register to view this content.
How do you want to handle non-alphabetic characters
i.e. is "ABC123XYX" considered "all caps"?
_
...How to Cross-post politely...
..Wrap code by selecting the code and clicking the # or read this. Thank you.
While you are in VBE;
go to [View] - [Object Browser]
enter ucase in search box
You will see many string functions and find few functions with $ at the end.
These functions returns explicitly String type data and bit faster.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks