VBA to remove characters and commas

Miya

Well-known Member
Joined
Nov 29, 2008
Messages
662
Hi, i need a macro to do the following,

1. Remove all commas from activeworksheet ( i notice i cant see the commas in excel, but when i open notepad i have commas in empty rows)

2. Remove all characters such as = + # ( ) $ from Column 5

Thanks
 
I think this is better
Code:
On Error Resume Next
With Columns(1)
    For Each r In .SpecialCells(2)
        If Len(r.Value) < 2 Then r.ClearContents
    Next
    .SpecialCells(4).EntireRow.Delete
End With
On Error GoTo 0
 
Upvote 0

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Thanks Seiya,

Everyone, , we should be greatful for Seiya's help, Seiya has helped countless number of people resolve difficult solutions. I'm always greatful that he helps me, and i can speak for quite a lot of people.
 
Upvote 0
Hi Seiya,

Watches your post in this forum, u r the one who gives maximum solution or all solution in vba. Am also keen to learn vba, any suggestion from your side on how to go about will be really helpful.

Since I don't know how deep you know about vba and Excel, all I can say is;

1) just try anything with vba
2) browse object browser in vbe
3) surf the net or get vbHelp when you don't understand the meaning

If tried above and still don't understand, ask it to the board.
 
Upvote 0
Since I don't know how deep you know about vba and Excel, all I can say is;

1) just try anything with vba
2) browse object browser in vbe
3) surf the net or get vbHelp when you don't understand the meaning

If tried above and still don't understand, ask it to the board.

Thanx for your reply. Actually speaking , have no knowledge about vba. The problem with vbhelp, it is not installed in my office. Anysite you are aware about which is good for the beginner.
 
Upvote 0
Thanx for your reply. Actually speaking , have no knowledge about vba. The problem with vbhelp, it is not installed in my office. Anysite you are aware about which is good for the beginner.
It's a must item.
 
Upvote 0

Forum statistics

Threads
1,225,209
Messages
6,183,599
Members
453,173
Latest member
Ali4772

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top