Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
for VBA
MyString VAL(mid(MyString,2,Instr(MyStr," ")-1)) Just to point out to the OP... I'm guessing you meant to write MyString whereas you wrote MyStr instead. By the way, here is another what to get the number out in VBA... --Mid(Split(MyString)(0),2) Although if the "code number" in the front is always constructed as shown, you could get the number portion directly.... --Mid(MyString,2,5) Rick |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Easiest way to remove text from a cell that has text and numbers? | Excel Discussion (Misc queries) | |||
remove text from cell containing numbers | Excel Discussion (Misc queries) | |||
How can I remove diff. numbers from a cell combined with text | Excel Discussion (Misc queries) | |||
Remove Numbers from text | Excel Worksheet Functions | |||
Remove leading Numbers from text | Excel Worksheet Functions |