Is there a macro that will automatically delete all of the periods that are present in the cells of a row?
This one was created with the macro recorder. I bet you yould learn to do that, too.
Sub DeletePeriods() ' ' Select cells and run macro ' Selection.Replace What:=".", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False End Sub
Sorry for the delayed response.
Is there a way to program it to always complete the action in Row 1?
Thanks!
maybe
Sub DeletePeriodsInRow1() Range("1:1").Replace What:=".", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False End Sub
Just a slight mod to teylyn's code to make it run a little more efficiently
Sub DeletePeriodsInRow1() Application.ScreenUpdating = False Range("1:1").Replace What:=".", Replacement:="", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Application.ScreenUpdating = True End Sub
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks