VBA - replace values and write date

oggy3000

Board Regular
Joined
Jul 13, 2011
Messages
51
Hey guys,
I am currently trying to build a UserForm in which the user can search for a value and replace all occurences of it in the whole workbook with a new one. In addition a date should be put into the same row but 2 cells next to it.

So the user fills in the value to be searched for, the replace value and the date. After clicking a button the value is to be searched, replaced and the date is to be written 2 cells to the right.

One additional problem for this might be that the value to be searched for is only one letter (for example "a"). Im not sure to what extend this is a problem because all other values in the column are numbers stored as text because they are so long.

I am not so experienced in this so can someone provide me with some code?:)

Cheers
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,224,518
Messages
6,179,261
Members
452,901
Latest member
LisaGo

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