Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Macro for Trimming

Hello All,

Please help me to trim a file with more than 1000 email Ids.
It is in the below form
xxxxx

from the above mentioned form I should get only the perfect email Id. (i.e)
xxxxx =

Please help me to build this Macro. It will be very helpful for me.

Thanx in Advance.
Madhan
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 644
Default Macro for Trimming

Sub ReplaceMacro()
Cells.Replace What:="*<", Replacement:="", LookAt:=xlPart,
SearchOrder _
:=xlByRows, MatchCase:=True, SearchFormat:=False,
ReplaceFormat:=False
Cells.Replace What:="", Replacement:="", LookAt:=xlPart,
SearchOrder:= _
xlByRows, MatchCase:=True, SearchFormat:=False,
ReplaceFormat:=False
End Sub

HTH

Die_Another_Day
vmadan16 wrote:
Hello All,

Please help me to trim a file with more than 1000 email Ids.
It is in the below form
xxxxx

from the above mentioned form I should get only the perfect email Id. (i.e)
xxxxx =

Please help me to build this Macro. It will be very helpful for me.

Thanx in Advance.
Madhan


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 341
Default Macro for Trimming

I am not sure if you really need a macro for this.
If your data is in column A, put this in cell B1 and extend the formula all
the way down column B
=MID(A1,FIND("<",A1)+1,LEN(A1)-FIND("<",A1)-1)
Hope that helps you!
--
Allllen


"vmadan16" wrote:

Hello All,

Please help me to trim a file with more than 1000 email Ids.
It is in the below form
xxxxx

from the above mentioned form I should get only the perfect email Id. (i.e)
xxxxx =

Please help me to build this Macro. It will be very helpful for me.

Thanx in Advance.
Madhan

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
Trimming Data Pat Excel Discussion (Misc queries) 2 March 1st 09 09:28 PM
TRIM not trimming Kim Excel Worksheet Functions 7 August 10th 07 12:48 AM
Trimming text scott Excel Worksheet Functions 4 December 16th 06 04:49 PM
Trimming Data Terry Bennett Excel Worksheet Functions 4 July 17th 06 02:57 PM
IP Trimming Josh Excel Discussion (Misc queries) 1 June 16th 06 04:34 PM


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