Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi Pol,
Sub Replace() ' ' MacroReplace Macro ' ' Columns("C:C").Select Range("c1").Activate Selection.Replace What:="I", Replacement:="Invoice", LookAt:=xlPart, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False End Sub "pol" wrote: Thanks for the reply. I want to use a macro to find and replace I - replace with Invoice C - Replaced with Credit I cannot use menu option edit- find and replace. I have to use macro to find I and C in all the cells of the column C "Eduardo" wrote: Hi, I don't know if I understand you want to replace the I for Invoice and the C with the word Credit if yes hit CTRL H , where it says find what enter I and in replace with enter Invoice and then do it again to change the C if I misunderstood you please give me an example thanks If this was helpful please click yes, thanks "pol" wrote: Dear All, In an excel have a column with a name 'TRANTYPE' ie in B1 cell in which contain the value 'I' and 'C'. 'I' for Invoice and 'C' for credit. I want to replace all the values in a cell as follows if the value is 'I' it should be replaced with 'Invoice' if the value is 'C' it should be replaced with 'Credit' in all the cell of that column. Please help . Pol |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to search in one column, and replace in the other column if fo | Excel Discussion (Misc queries) | |||
Can I replace a ' at the beginning of a text cell using Replace | Excel Discussion (Misc queries) | |||
Find and Replace on just One Column | Excel Discussion (Misc queries) | |||
Replace all non blanks in a column with column header | Excel Discussion (Misc queries) | |||
Find and Replace in a column | New Users to Excel |