Help with find and replace with Items from list

rickybid

New Member
Joined
Sep 3, 2014
Messages
7
Hi All,

Last time everybody was real helpfull, so I thought maybe one of you guys ( or girls ) could help me with another question.

I have a piece of text in excel in which I need to replace two words ( dates and a code ) from a list and then the next till the list ends.

So to make it more clear, this is the text I have in row a1 ( sheet 1)

Sess0.Screen.Sendkeys("cDDMMYY")("<tab<tab>XX0000000000<tab>s0101<enter>")</enter></tab></tab<tab>

<tbody>
</tbody>

and in sheet 2 I have in a1:a5:
01-01-2014
02-01-2014
etc.

and in sheet 2 b1:b5:
xx0000000001
xx0000000002

I need to replace the DDMMYY with the a1.value from sheet 2 and the xx00 with b1, and then copy the line and paste it in a new sheet. And with a loop (?) the rest of the list.

So in my new file I will have 5 lines with all new dates and xx.. codes.

I hope it makes some sense.
but thanks in advance..
 
Last edited:

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.

Forum statistics

Threads
1,191,183
Messages
5,985,172
Members
439,944
Latest member
Vangelis74

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
Top