G
Greg
Hi,
I have a query regarding the 'replace' tool. The best way of describing
what I want to do is below (under A is what I have, under B is what I
want):
A B
Hovis Hovis
Hovis White Hovis
Hovis White Standard Hovis
Kingsmill Kingsmill
Kingsmill White Kingsmill
Kingsmill White Standard Kingsmill
This goes on for a very long time (big excel sheet!).
Now, I know that the replace tool available in the 'edit' function will
work when I say find 'kingsmill *' and replace with 'kingsmill', but
what I know Macros can do is to allow me to place a button on the excel
sheet that i can press and it will replace all of the variables (e.g.
hovis white to hovis, and kingsmill white top kingsmill, etc etc). This
will prevent me from having to go through each variable.
Therefore, I would be very grateful if someone could help me with this.
I am finding it difficult as the sheet is going to be updated every
week, so placing specifc ranges in a script (e.g.
Range("A11").Select) will not be appropriate and it doesnt seem to work
if I just put A or A1:A100).
I would be grateful for any suggestions, but bear in mind I am a DIY
Macros beginner who has only been looking at this for two days! If you
are going to write a script, please explain it to me. Thank you, very
very much!
I look forward to hearing from somone, anyone...thanks
Greg
I have a query regarding the 'replace' tool. The best way of describing
what I want to do is below (under A is what I have, under B is what I
want):
A B
Hovis Hovis
Hovis White Hovis
Hovis White Standard Hovis
Kingsmill Kingsmill
Kingsmill White Kingsmill
Kingsmill White Standard Kingsmill
This goes on for a very long time (big excel sheet!).
Now, I know that the replace tool available in the 'edit' function will
work when I say find 'kingsmill *' and replace with 'kingsmill', but
what I know Macros can do is to allow me to place a button on the excel
sheet that i can press and it will replace all of the variables (e.g.
hovis white to hovis, and kingsmill white top kingsmill, etc etc). This
will prevent me from having to go through each variable.
Therefore, I would be very grateful if someone could help me with this.
I am finding it difficult as the sheet is going to be updated every
week, so placing specifc ranges in a script (e.g.
Range("A11").Select) will not be appropriate and it doesnt seem to work
if I just put A or A1:A100).
I would be grateful for any suggestions, but bear in mind I am a DIY
Macros beginner who has only been looking at this for two days! If you
are going to write a script, please explain it to me. Thank you, very
very much!
I look forward to hearing from somone, anyone...thanks
Greg