Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
hey i'm new to vba this seems easy enough but i'm struggling
in cell Q1 the value is chosen from a list about 40 names each time I change a name I need a macro to run called delete_cells which clears the values "w" or "l" from the cells . I have the code for delete_cells below Sub delete_cells() Cells.Select Selection.Replace What:="w", Replacement:="", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False Selection.Replace What:="l", Replacement:="", LookAt:=xlWhole, _ SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _ ReplaceFormat:=False End Sub Thanx in advance |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Macro - Auto - Sheet Name change ? expiry | Excel Discussion (Misc queries) | |||
Macro Auto Change Cell References | Excel Programming | |||
An auto macro to change color of the active cell | Excel Programming | |||
Change in cell from formula to auto run a macro | Excel Programming | |||
using macro to change auto filter in shared workbook | Excel Programming |