Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
do you know how to take out the 011 from this number:011548926 in.
|
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
do you know how to take out the 011 from this number:011548926 in.
Dont know what you want...
Remove 011 or keep 011? Two examples - you choose. Sub test1() Dim str As String str = "011548926 in." str = Left(str, 3) MsgBox str End Sub Sub test2() Dim str As String str = "011548926 in." str = Mid(Split(str, " ", 2)(0), 4) MsgBox str End Sub -- Rob van Gelder - http://www.vangelder.co.nz/excel "reggy" wrote in message ... |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
do you know how to take out the 011 from this number:011548926 in.
Dim sStr as String
sStr = "011548926 in" sStr = Application.Substitute(sStr,"011","") msgbox sStr -- Regards, Tom Ogilvy "reggy" wrote in message ... |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sumif number is greater than a number but less than another number | Excel Discussion (Misc queries) | |||
How can I click on a telephone number in an Excel 2002 spreadsheet, and have the number dialed? | Excel Discussion (Misc queries) | |||
How to calculate number of occurencies of a specific number number | Excel Discussion (Misc queries) | |||
Count number of times a specific number is displayed in a cell ran | Excel Worksheet Functions | |||
Rounding a number to a multiple quantity that adds to a fixed total number | Excel Worksheet Functions |