Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default change all instances of Queensland to QLD

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


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default change all instances of Queensland to QLD

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

--
Message posted from http://www.ExcelForum.com

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default change all instances of Queensland to QLD

Many thanks for your help.



DL





"bcmiller " wrote in message
...
You don't really need code to do this, you can simply use find and
replace (control + I). If you do need a macro though you can adapt
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,

BC


---
Message posted from http://www.ExcelForum.com/



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Two Instances Mario[_4_] Excel Discussion (Misc queries) 3 September 11th 11 03:45 PM
Change All Instances of a Cell Reference in a Formula AlwaysFroosh! Excel Discussion (Misc queries) 5 December 16th 08 08:58 PM
Change all instances of A,B,C,D to G Julie Excel Discussion (Misc queries) 4 June 20th 08 01:30 AM
Create list of unique instances from list of multiple Instances Dishon Excel Worksheet Functions 0 March 3rd 08 10:46 AM
Is there an easy way to replace list A instances with list B instances (sorted lists). kkip Excel Programming 3 December 31st 03 01:50 PM


All times are GMT +1. The time now is 12:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"