Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Is there a function that will allow me to determine if a character is
either Upper or Lower Case? If not, any idea how I can build one in VBA? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
give this function a try
public function IsUpperCase(byval InputString as string) as boolean if ucase(inputstring) = inputstring then IsUpperCase = true else IsUpperCase = false end if end function -- HTH... Jim Thomlinson " wrote: Is there a function that will allow me to determine if a character is either Upper or Lower Case? If not, any idea how I can build one in VBA? |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
One character in A1?
=if(exact(a1),upper(a1)),"upper","not upper") But you'll have to add a couple of checks if there's a possibility of non-alphabetic characters in that cell. =IF(LEN(A1)<1,"Too many chars", IF(OR(CODE(LOWER(A1))<CODE("a"),CODE(LOWER(A1))CO DE("z")),"not alpabetic", IF(EXACT(A1,UPPER(A1)),"upper","Lower"))) All one cell. wrote: Is there a function that will allow me to determine if a character is either Upper or Lower Case? If not, any idea how I can build one in VBA? -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
convert lower to upper case automatically without using UPPER | Excel Discussion (Misc queries) | |||
Changing upper case characters to upper/lower | Excel Discussion (Misc queries) | |||
Changing file in all upper case to upper and lower case | Excel Discussion (Misc queries) | |||
Change from mixed caps and upper lower to all upper lower case | Excel Worksheet Functions | |||
How do I convert all upper case excel sheet into upper and lower . | Excel Discussion (Misc queries) |