Thebatfink
Active Member
- Joined
- Apr 8, 2007
- Messages
- 410
Hi,
I'm currently using the formula below to extract partial strings from cell contents for example,
I'd like to do this with VBA however. I have tried,
but it didn't like it. I presume this is possible, but what is the correct way of doing this?
Thanks!
Batfink
I'm currently using the formula below to extract partial strings from cell contents for example,
Code:
=LEFT(J11,FIND("*",J11,1)-1)
I'd like to do this with VBA however. I have tried,
Code:
Application.WorksheetFunction.Left(myString, _
Application.WorksheetFunction.Find("*", myString, 1) - 1)
but it didn't like it. I presume this is possible, but what is the correct way of doing this?
Thanks!
Batfink