Yes hope show...

 i have tried the coding provided by Lalit Ji, there i just made a very
small change in selection range, its fine working.
   i have pasted the code in the desire sheet in VBA application and made
run , all the almost punctuation got removed. hence easily it was done.

Below the code:-
Remove Punction
Sub RemovePunctuation()
    Dim arrPunc                     As Variant
    Dim lngLoop                     As Long
    Dim rngCol                      As Range
    Dim rngRange                    As Range


    arrPunc = Array(".", "!", ":", ";", "-", "#", "(", ")", "[", "]", "'",
"""", "/", ",")

    Set rngRange = *Selection.SpecialCells(xlCellTypeConstants, 23)**
   *
    For Each rngCol In rngRange
        If Not LCase(rngCol.Value) Like "*date*" Then
            For lngLoop = LBound(arrPunc) To UBound(arrPunc) - 1
                rngCol.EntireColumn.Replace What:=arrPunc(lngLoop),
Replacement:="", LookAt:=xlPart, _
                SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
                ReplaceFormat:=False
            Next lngLoop
        Else
            For lngLoop = LBound(arrPunc) To UBound(arrPunc) - 1
                If arrPunc(lngLoop) <> "/" Then
                    rngCol.EntireColumn.Replace What:=arrPunc(lngLoop),
Replacement:="", LookAt:=xlPart, _
                    SearchOrder:=xlByRows, MatchCase:=False,
SearchFormat:=False, _
                    ReplaceFormat:=False
                End If
            Next lngLoop
        End If
    Next rngCol
MsgBox "Heelo its done"
End Sub


  Thanks Experts.



Thanks & Regards,
*Deba Ranjan P*


****


On Wed, Jun 27, 2012 at 6:35 PM, Rajan_Verma <rajanverma1...@gmail.com>wrote:

> I think find and replace is best approach..****
>
> ** **
>
> * *
>
> *Regards*
>
> *Rajan verma*
>
> *+91 7838100659 [IM-Gtalk]*
>
> ** **
>
> *From:* excel-macros@googlegroups.com [mailto:
> excel-macros@googlegroups.com] *On Behalf Of *Anil Gawli
> *Sent:* 27 June 2012 3:15
> *To:* excel-macros@googlegroups.com
> *Subject:* Re: $$Excel-Macros$$ Remove Punctuation****
>
> ** **
>
> pls find attached sheet****
>
> On Wed, Jun 27, 2012 at 2:52 PM, Deba Ranjan <drdeva...@gmail.com> wrote:*
> ***
>
> Sir,
>
> PFA........and  there are lots of punctuation which need to be clean.
>
> For cleaning and trimming the sheets i have used the code below mention
> and it is fine working:-
>
>
> Sub TrimCleanCells()
> Dim Rng As Range, myCell As Range
> Set Rng = ActiveSheet.UsedRange.SpecialCells(xlCellTypeConstants, 23)
> For Each myCell In Rng
> myCell.Value =
> WorksheetFunction.Trim(WorksheetFunction.Clean(myCell.Value))
> Next
> msgBox "you have cleaned and trimmed everything"
> End Sub
>
>
> But i unable to clean for Punctuation !!
> ****
>
> ** **
>
>  ****
>
> Thanks & Regards,
> *Deba Ranjan P*****
>
> ** **
>
>
>
> ****
>
> On Wed, Jun 27, 2012 at 2:46 PM, NOORAIN ANSARI <noorain.ans...@gmail.com>
> wrote:****
>
> Deba Please share your workbook****
>
>
> On Wed, Jun 27, 2012 at 2:38 PM, Deba Ranjan <drdeva...@gmail.com> wrote:
> > Dear experts,
> >
> >
> > Is there any VBA code to remove punctuation in  a sheets ?
> >
> > ------ i am doing it manually by ctr + H (replacing the desire
> punctuation
> > with "") and it takes many times to remove huge data.
> >
> >   so is there any coding for removing punctuation at a time ?
> >
> >
> > Thanks & Regards,
> > Deba Ranjan P
> >
> >
> >
> > --
> > --
> > 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
> >
> >
>
>
> ****
>
> --
> Thanks & regards,
> Noorain Ansari
> www.noorainansari.com
> www.excelmacroworld.blogspot.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
>
>  ****
>
>
>
>
> --
> Thanks & Regards,
> Gawli Anil Narayan
> Software Developer,
> Abacus Software Services Pvt Ltd****
>
> --
> --
> 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


Reply via email to