Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
How would I catch the error if the string does not have a space in it and save the value as it is in that case? For iCtr = 2 To OldLusedrow OldString = ws.Range("B" & iCtr).Value ws.Range("A" & iCtr).Value = Left(OldString, InStr(OldString, " ") - 1) Next -- Thanks for your help. Karen53 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Instr | Excel Programming | |||
instr() ? | Excel Programming | |||
InStr | Excel Programming | |||
InStr | Excel Programming | |||
InStr and ADO | Excel Programming |