#1   Report Post  
Esrei
 
Posts: n/a
Default Delete Right 5 if

I need a macro to do the following in B3:B500
If(right(......,5)="Total"
Delete Right(........,6)

Hope this is clear
  #2   Report Post  
Don Guillett
 
Posts: n/a
Default

something like

for each c in selection
if right(c,5)="Total" then c.value=left(c,len(c)-5)
next

--
Don Guillett
SalesAid Software

"Esrei" wrote in message
...
I need a macro to do the following in B3:B500
If(right(......,5)="Total"
Delete Right(........,6)

Hope this is clear



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
How do i delete a macro in Excel 2003 when delete isn't highlight Abel Excel Discussion (Misc queries) 2 September 13th 05 04:09 AM
how do I delete a worksheet from my workbook DLee New Users to Excel 2 August 15th 05 09:59 PM
Delete row depending on criteria adw223 Excel Discussion (Misc queries) 1 June 30th 05 12:55 AM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
How to delete blank rows John Mansfield Excel Discussion (Misc queries) 3 April 27th 05 11:48 PM


All times are GMT +1. The time now is 09:20 PM.

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

About Us

"It's about Microsoft Excel"