Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 73
Default triming the first 10 characters in a cell..

how do i trim or erase the first 10 characters in a cell?

Thank you
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,942
Default triming the first 10 characters in a cell..

hi
short answer..
Sub trimit()
Dim r As Range
Set r = ActiveCell
r.Value = Right(r, Len(r) - 10)
End Sub

do we have more than one cell???

regards
FSt1

"dstiefe" wrote:

how do i trim or erase the first 10 characters in a cell?

Thank you

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,441
Default triming the first 10 characters in a cell..

Sub Trim10()
With Activecell
.Value = Mid(.Value,11,Len(.Value))
End With
End Sub

or

Sub Trim10B()
With ActiveCell
.Value = Mid(.Value, 11)
End With
End Sub


HTH,
Bernie
MS Excel MVP


"dstiefe" wrote in message
...
how do i trim or erase the first 10 characters in a cell?

Thank you


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
Need help triming a sentence Jim Excel Discussion (Misc queries) 8 November 25th 09 10:48 PM
convert 5 characters in a cell to 6 characters by adding a zero Helenf Excel Discussion (Misc queries) 4 May 18th 09 04:43 PM
Change color of characters in a cell based of a cell reference kimbobo Excel Programming 2 March 22nd 08 01:05 AM
Triming a number Keith Excel Worksheet Functions 1 February 2nd 07 04:41 PM
Triming the fat off my sheets... Neal Excel Discussion (Misc queries) 1 December 30th 04 06:55 PM


All times are GMT +1. The time now is 02:11 AM.

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"