ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Remove Left Most character (https://www.excelbanter.com/excel-programming/384944-remove-left-most-character.html)

Troubled User

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

Thanks.

Vergel Adriano

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.


Ron de Bruin

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.




All times are GMT +1. The time now is 08:48 AM.

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