Rajan...Thanks for the help but still your code is returning numbers . On Monday, June 4, 2012 9:11:22 PM UTC+5:30, Rajan_Verma wrote: > > Ah , *Cod* is just a integer type *variable* , that will hold the *ACSII > Code* or each character in string, > > > > > > * * > > *Regards* > > *Rajan verma* > > *+91 7838100659 [IM-Gtalk]* > > > > *From:* excel-macros@googlegroups.com [mailto: > excel-macros@googlegroups.com] *On Behalf Of *sonal > *Sent:* 04 June 2012 9:04 > *To:* excel-macros@googlegroups.com > *Subject:* Re: $$Excel-Macros$$ Text Cleaning > > > > again thanks but i know how to run a macro what i was asking is > the explanation for "COD" that ypu have used in your code. > On Monday, June 4, 2012 8:59:23 PM UTC+5:30, Rajan_Verma wrote: > > Ok.. > > > > Press ALT+F11 > > ALT + I M > > Paste this code there > > > > Use Function Worksheet Like : > > = RemoveSpecialCharacters(YourString) > > > > * * > > *Regards* > > *Rajan verma* > > *+91 7838100659 [IM-Gtalk]* > > > > *From:* excel-macros@googlegroups.com [mailto: > excel-macros@googlegroups.com] *On Behalf Of *sonal gupta > *Sent:* 04 June 2012 8:58 > *To:* excel-macros@googlegroups.com > *Subject:* Re: $$Excel-Macros$$ Text Cleaning > > > > Thanks rajan, but i'm new to macros..can you please explain the use of > "COD" in this. > > > > > On Monday, June 4, 2012 8:51:52 PM UTC+5:30, Rajan_Verma wrote: > > Try this : > > > > Public Function RemoveSpecialCharacters(Shname As String) As String > > Dim Cod As Integer > > Dim ShN As String > > For i = 1 To Len(Shname) > > Cod = Asc(Mid(Shname, i, 1)) > > If (Cod > 47 And Cod < 58) Or (Cod > 64 And Cod < > 91) Or (Cod > 96 And Cod < 123) Then > > ShN = ShN & Mid(Shname, i, 1) > > End If > > Next > > RemoveSpecialCharacters = ShN > > End Function > > > > * * > > *Regards* > > *Rajan verma* > > *+91 7838100659 [IM-Gtalk]* > > > > *From:* excel-macros@googlegroups.com [mailto: > excel-macros@googlegroups.com] *On Behalf Of *sonal gupta > *Sent:* 04 June 2012 8:45 > *To:* excel-macros@googlegroups.com > *Subject:* $$Excel-Macros$$ Text Cleaning > > > > Hi, > > > > This is my first post in this group.I have learnt many things from this > group.I'm finding difficulty in cleaning the range in which each cell has > string like " rahul;6e3-".I need a macro which will clean the special > characters,spaces & numbers & leave the alphabets only. > > > > Thanks in advance. > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > To unsubscribe, send a blank email to > excel-macros+unsubscr...@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > To unsubscribe, send a blank email to > excel-macros+unsubscr...@googlegroups.com > > -- > FORUM RULES (986+ members already BANNED for violation) > > 1) Use concise, accurate thread titles. Poor thread titles, like Please > Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice > will not get quick attention or may not be answered. > > 2) Don't post a question in the thread of another member. > > 3) Don't post questions regarding breaking or bypassing any security > measure. > > 4) Acknowledge the responses you receive, good or bad. > > 5) Cross-promotion of, or links to, forums competitive to this forum in > signatures are prohibited. > > NOTE : Don't ever post personal or confidential data in a workbook. Forum > owners and members are not responsible for any loss. > > > ------------------------------------------------------------------------------------------------------ > To post to this group, send email to excel-macros@googlegroups.com > > To unsubscribe, send a blank email to > excel-macros+unsubscr...@googlegroups.com >
-- FORUM RULES (986+ members already BANNED for violation) 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Cross-promotion of, or links to, forums competitive to this forum in signatures are prohibited. NOTE : Don't ever post personal or confidential data in a workbook. Forum owners and members are not responsible for any loss. ------------------------------------------------------------------------------------------------------ To post to this group, send email to excel-macros@googlegroups.com To unsubscribe, send a blank email to excel-macros+unsubscr...@googlegroups.com