N
Noitide
Hello,
I am trying to figure out whether or not a string has a space in
its contents. I am using the following code.
(AppWSF is set equal to Application.WorksheetFunction)
If IsError(AppWSF.Find(" ", Given_Data.Value, 1)) = False Then
HasSpace = True
SpaceLoc = AppWSF.Find(" ", Given_Data.Value, 1)
End If
It works fine if there is a space in the string; however, it has an
error and quits running if there is no space in the string. Any help
would be appreciated!
Thanks,
I am trying to figure out whether or not a string has a space in
its contents. I am using the following code.
(AppWSF is set equal to Application.WorksheetFunction)
If IsError(AppWSF.Find(" ", Given_Data.Value, 1)) = False Then
HasSpace = True
SpaceLoc = AppWSF.Find(" ", Given_Data.Value, 1)
End If
It works fine if there is a space in the string; however, it has an
error and quits running if there is no space in the string. Any help
would be appreciated!
Thanks,