character limitations

C

Chris

if the active cell has the first 7 characters = "example", I want it to return a value in another cell. ie,

"example 7", "example fourty nine" and "example spiderman"

would all return a value, where as...

"7", "fourty nine" and "spiderman"

would not.

TIA
Chris
 
T

Tom Ogilvy

myVal = 50
if lcase(Left(ActiveCell.Value,7)) = "example" then
ActiveCell.Offset(0,1).Value = myVal
End if

--
Regards,
Tom Ogilvy

Chris said:
if the active cell has the first 7 characters = "example", I want it to
return a value in another cell. ie,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top