Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'd like to use VBA to determine if the text in strMyString is all capital
(upper case) letters, but I'm not sure how. Any ideas? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Dave,
Try: '==================== Function IsAllUcase(sStr) As Boolean IsAllUcase = sStr = UCase(sStr) End Function '<<==================== '==================== Public Sub TestIt() Dim Arr As Variant Dim i As Long Arr = Array("abc", "ABc", "ABC") For i = LBound(Arr) To UBound(Arr) Debug.Print Arr(i), IsAllUcase(Arr(i)) Next End Sub '<<==================== --- Regards, Norman "Dave B" wrote in message ... I'd like to use VBA to determine if the text in strMyString is all capital (upper case) letters, but I'm not sure how. Any ideas? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If UCase(strMyString) = strMyString Then ....
-- Ian -- "Dave B" wrote in message ... I'd like to use VBA to determine if the text in strMyString is all capital (upper case) letters, but I'm not sure how. Any ideas? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Capital Text | Excel Discussion (Misc queries) | |||
text to columns using capital letters | Excel Discussion (Misc queries) | |||
I did not obtain to transform text of small letter for capital le | Excel Discussion (Misc queries) | |||
Text to Coloumns, by consecutive capital letters | Excel Worksheet Functions | |||
how do I convert text in excel to 1st letter capital,only | Excel Worksheet Functions |