Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I need a macro that if I type a value in column N the cells in the same row
in coloms M,J and K needs to be cleared. This is what I have at the moment but I get runtime error 13 Type mismatch. I am just starting to learn myself VBA so please help. Thanx Private Sub Worksheet_Change(ByVal Target As Range) Dim row As Integer row = Target.row If Target.Column = "NA" Then Cells(row, 10).Clear Cells(row, 11).Clear Cells(row, 13).Clear Cells(row, 14).Clear End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How do I pause a macro to select specific cells | Excel Worksheet Functions | |||
Macro to delete data in 'green' cells only | Excel Worksheet Functions | |||
repeat macro formula to all cells | Excel Discussion (Misc queries) | |||
Clear Contents - NonBold cells | Excel Discussion (Misc queries) | |||
Convert data of cells to any type: Number, Date&Time, Text | Excel Discussion (Misc queries) |