Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Sorry i forgot the "Next" off the code! Sub find_n_replace() Dim Rng As Range, MyCell As Range Set Rng = ActiveSheet.Range("X6:X361") For Each MyCell In Rng If MyCell.Value = "IP/OP Obs" Then ActiveSheet.Range("BK" & MyCell.Row).Value = _ "No IP acuity documented; should have been OP Observation" End If Next MyCell activesheet.Columns("BK").AutoFit End Sub -- The Code Cage Team Regards, The Code Cage Team www.thecodecage.com ------------------------------------------------------------------------ The Code Cage Team's Profile: http://www.thecodecage.com/forumz/member.php?userid=2 View this thread: http://www.thecodecage.com/forumz/showthread.php?t=7656 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I record a macro on a cell that has text but not a text box | Excel Worksheet Functions | |||
Macro - Inserting text to a cell already containg text | Excel Worksheet Functions | |||
Macro - Inserting text to a cell already containg text | Excel Discussion (Misc queries) | |||
Need a macro to insert text in a cell that already has text.Excel | Excel Discussion (Misc queries) | |||
Need a macro to insert text in a cell that already has text.Excel | Excel Programming |