change all instances of Queensland to QLD

  • Thread starter Thread starter fitful_thought
  • Start date Start date
F

fitful_thought

Hi,

I want to change all instances of Queensland to QLD.

What's the easiest way to do that, please, with a macro.

Thanks,

DL
 
You don't really need code to do this, you can simply use find an
replace (control + I). If you do need a macro though you can adap
this code which has been taken straight from the help file:

Worksheets("Sheet1").Columns("A").Replace _
What:="Queensland", Replacement:="QLD", _
SearchOrder:=xlByColumns, MatchCase:=True

Cheers,

B
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top