VBA for replacement

mrmaso

New Member
Joined
Oct 10, 2017
Messages
16
Is it possible to write macro which will replace text in cells.

For example: In cell A1 is this kind of text (link): =+'[Gal Birch 1200 1400 1500 P1 R4_1.xlsx]1500 Birch Gal'!$H$19
With macro I would like change cell A2 this kind of link: =+'[Gal Birch P1 R4_1.xlsx]1400 Birch Gal'!$H$19
In A2 link will have same cell but the file address will be changed.

This macro I would like to use in range A1:A30 and in each A1 up to A30 cell is the same file address but different cell

How can I write macro?

Thank you
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,215,745
Messages
6,126,627
Members
449,323
Latest member
Smarti1

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