Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Two Instances | Excel Discussion (Misc queries) | |||
Change All Instances of a Cell Reference in a Formula | Excel Discussion (Misc queries) | |||
Change all instances of A,B,C,D to G | Excel Discussion (Misc queries) | |||
Create list of unique instances from list of multiple Instances | Excel Worksheet Functions | |||
Is there an easy way to replace list A instances with list B instances (sorted lists). | Excel Programming |