Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,302
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default removing first three characters

=right(a1,len(a1)-3)

T

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

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,337
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing 2-3 characters at the end Ty Excel Worksheet Functions 7 June 11th 11 01:41 AM
removing characters DEI[_2_] Excel Discussion (Misc queries) 7 April 29th 08 09:02 PM
Removing characters Maksko Excel Discussion (Misc queries) 8 November 3rd 06 11:26 AM
Removing characters Maksko Excel Discussion (Misc queries) 7 October 19th 06 02:26 PM
Removing characters Tomsriv Excel Worksheet Functions 2 August 14th 06 11:54 PM


All times are GMT +1. The time now is 02:42 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"