Auto Replace Text after Pasting

shanenavy26

New Member
Joined
Sep 26, 2018
Messages
29
When I "Paste as Value". I would like to have the text automatically replace itself to something new in the same cell.

IE: "POS DEBIT - MCDONALDS" --> *Paste into cell* --> "MCDONALDS".

I cannot seem to find a function to fit this once I paste it. Is there a VBA script to help? I will be pasting all these to Column B.
 
Glad to help & thanks for the feedback.
However I was obviously not think straight when I supplied that.
This should be better
Code:
Private Sub Worksheet_Change(ByVal Target As Range)
   If Intersect(Target, Range("B:B")) Is Nothing Then Exit Sub
   Application.EnableEvents = False
   Target.Replace "ACH Transaction - ", "", xlPart, , False, , False, False
   Target.Replace "POS Debit - Visa Check Card XXXX - ", "", xlPart, , False, , False, False
   Application.EnableEvents = True
End Sub
 
Upvote 0

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Hello Fluff,

Are you familiar with WPS Spreadsheets? What can I change to make it work on there. I only have Excel at the office, not at home so I have to use WPS when im not at work.
 
Upvote 0
I've never heard of WPS before, so know nothing about it.
 
Upvote 0
Basically 99% copy of Microsoft Office, but free. I fixed the problem. I had to resave the file as Macro Enabled. On to the next problem!! Thanks.
 
Upvote 0
sorry i see the issue resolved
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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