Home |
Search |
Today's Posts |
#9
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Il giorno sabato 2 febbraio 2013 08:40:28 UTC+1, Robert Crandal ha scritto:
Maybe?... Public Function HasOnlyWhiteSpaces(ByVal Text As String) As Boolean With Application.WorksheetFunction HasOnlyWhiteSpaces = Len(.Trim(.Clean(Text))) = 0 End With End Function -- Ciao! Maurizio Does Excel VBA have a built-in function to test if a string variable contains ONLY whitespace characters? For my purposes, a whitespace character can be any one of the following: space, tab, or enter (carriage return). I know regular expressions solves this easily, but I do NOT want to use regular expressions for this. I'm just curious if Excel has a built-in function to test if a string contains 1 or more of the above whitespace characters. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Test for string of space chars? | Excel Programming | |||
Test for NULL string? | Excel Programming | |||
extract cusotmer name from test string | Excel Worksheet Functions | |||
logical test and concatenate(string) | Excel Discussion (Misc queries) | |||
Test String | Excel Discussion (Misc queries) |