Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default Remove Left Most character

I need a VB macro that will remove the left most character in all cases.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 857
Default Remove Left Most character

To provide a generic answer, assuming you wanted to do this for A1 in Sheet1

With Sheet1.Range("A1")
.Value = Mid(.Text, 2)
End with


"Troubled User" wrote:

I need a VB macro that will remove the left most character in all cases.

Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Remove Left Most character

Try this for the activecell

ActiveCell.Value = Right(ActiveCell.Value, Len(ActiveCell.Value) - 1)




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Troubled User" wrote in message ...
I need a VB macro that will remove the left most character in all cases.

Thanks.


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
Returning left part of cell before a character Alan Excel Discussion (Misc queries) 6 April 4th 23 02:26 PM
Get characters on left of specified character in Excel Murugan Excel Discussion (Misc queries) 3 April 2nd 23 04:15 PM
Test left character is a number? nastech Excel Discussion (Misc queries) 7 October 5th 15 06:05 PM
Text to the left and right of a character Esra[_2_] Excel Worksheet Functions 4 January 28th 08 10:56 PM
Limit character count in cell from left BMF Excel Discussion (Misc queries) 5 July 12th 06 06:11 PM


All times are GMT +1. The time now is 11:48 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"