Excel file 1 has worksheet code as follows:Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Column > 1 And Target.Column < 15 Then
Cells(Target.Row, 16) = True
End If
End Sub
I want to, in a macro, open another file, and set the worksheet code to this same sub.
How do I do it?
Thanks
If Target.Column > 1 And Target.Column < 15 Then
Cells(Target.Row, 16) = True
End If
End Sub
I want to, in a macro, open another file, and set the worksheet code to this same sub.
How do I do it?
Thanks