Remove/ Replace Characters From Textbox

Jaye7

Well-known Member
Joined
Jul 7, 2010
Messages
1,062
Is there a way to remove certain characters from a userform textbox, i.e. like the find and replace on a worksheet.

I don't want to copy the data to a cell on a sheet first as I have a selection change event which interferes with things, I would prefer to be able to do the changes within the userform itself.

I want to replace/ remove characters such as fullstop(.) and plus (+).

So text in textbox might be 9.15+34 so I want it yo end up as 91534 or it might be A35+Kl1.C3 which would end up as A35Kl1C3.

Thanks
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result

Forum statistics

Threads
1,216,212
Messages
6,129,546
Members
449,515
Latest member
lukaderanged

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