I have certain Excel macro that people paste into it data manually before the excution.
To avoid errors in the macro running I want to disable certain columns from pasting data in it.
I tried with
Private Sub Worksheet_Change(ByVal Target As Range)
Target.Column = 7
Target.Column = 8
Target.Column = 12
End Sub
Can someone guide me how it is possible?