Find all cells within a column that begins with a specific string expression then replacing the date value in the cell in string format

Halpplox

New Member
Joined
May 30, 2024
Messages
1
Office Version
  1. Prefer Not To Say
Platform
  1. Windows
I have no VBA coding experience except for recording macros hence I am stuck with this problem.

I have a spreadsheet with column J that contains string data type in all its cells.

Some of the cells contain string expression that begin exactly like this "The committee reviewed the case in Apr 2024*" and ends in a variety of ways.

What I need is for the date in such cells to be updated based on the today's month and year when I run the macro while everything else in the cell remains the same.

So If I ran the macro in May, then the string will be updated to "The committee reviewed the case in May 2024*" where * is the wildcard of whatever string the cell ends in.

Thanks in advance!
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Some of the cells contain string expression that begin exactly like this "The committee reviewed the case in Apr 2024*"
Do you mean it always "Apr 2024" or it could be any month or year, such as "Jan 2024" or "Feb 2020"?
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,259
Members
452,626
Latest member
huntinghunter

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