Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro help - add column selection
I have the following replace info in a macro.
Selection.Replace What:="Of", Replacement:= _ " of ", LookAt:=xlPart, SearchOrder:=xlByRows, _ MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False I only want this applied to Column A. What do I need to add so it only does the replacements in Column A? Thanks, Heather |
#2
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
Macro help - add column selection
Try the below..No need to select
Columns(1).Replace What:="Of", Replacement:= _ " of ", LookAt:=xlPart, SearchOrder:=xlByRows "HeatherJ" wrote: I have the following replace info in a macro. Selection.Replace What:="Of", Replacement:= _ " of ", LookAt:=xlPart, SearchOrder:=xlByRows, _ MatchCase:=False, SearchFormat:=False, ReplaceFormat:=False I only want this applied to Column A. What do I need to add so it only does the replacements in Column A? Thanks, Heather |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Macro with List Box Selection | Excel Discussion (Misc queries) | |||
How can run a macro ( call a macro) on selection of any filtercriteria? | Excel Worksheet Functions | |||
SELECTION macro | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
Macro for row selection | Excel Discussion (Misc queries) |