find and replace

scambug

New Member
Joined
Feb 2, 2012
Messages
33
Hi I have a find and replace code here that replace .[dot] to 0.[zero and dot]
but my promblem is when i run to the entire column all dots replace to zero and dot
how can i change this
i need only that starts .[dot] in a column replaces 0. [zero,dot]

Code:
Columns("A:A").Select
Selection.Replace What:=".", Replacement:="0.", LookAt:=xlPart, _
SearchOrder:=xlByColumns, MatchCase:=False

thanks
 
Set a filter to the data, custom filter, begins with, enter the .

You should now be able to see the cells beginning with . and do your find replace on the selected cells....

I think!
 
Upvote 0

Forum statistics

Threads
1,226,849
Messages
6,193,330
Members
453,790
Latest member
yassinosnoo1

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