ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   removing first three characters (https://www.excelbanter.com/excel-programming/310216-removing-first-three-characters.html)

Tiffany[_4_]

removing first three characters
 
I need to remove the first three characters from a string
of text for example


tbwGo_Home - I would like the result to be Go_Home

Norman Jones

removing first three characters
 
Hi Tiffany.

Sub Tester()
Dim sStr As String
sStr = "tbwGo_Home"
sStr = Mid(sStr, 4)
MsgBox sStr

End Sub

---
Regards,
Norman



"Tiffany" wrote in message
...
I need to remove the first three characters from a string
of text for example


tbwGo_Home - I would like the result to be Go_Home




tinyjack[_5_]

removing first three characters
 
=right(a1,len(a1)-3)

T

--
Message posted from http://www.ExcelForum.com


Don Guillett[_4_]

removing first three characters
 
for each c in selection
c.value=right(c,len

--
Don Guillett
SalesAid Software

"Tiffany" wrote in message
...
I need to remove the first three characters from a string
of text for example


tbwGo_Home - I would like the result to be Go_Home




Don Guillett[_4_]

removing first three characters
 
oops use THIS

Sub deleteleftthree()
For Each c In Selection
c.Value = Mid(c, 4, Len(c) - 3)
Next
End Sub
--
Don Guillett
SalesAid Software

"Tiffany" wrote in message
...
I need to remove the first three characters from a string
of text for example


tbwGo_Home - I would like the result to be Go_Home





All times are GMT +1. The time now is 10:15 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com