G
Guest
Hi.
Through the discussion group I got an answer to a question but it turns out
I can't use VBA. Can it be done through the use of formulas? Here is the
VBA that I have:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_Exit:
If Target.Address <> "$A$1" Then Exit Sub
Application.EnableEvents = False
With Application
icol = .Match(Range("h1"), Range("3:3"), 0) '<=== change h1 if required
irow = .Match(Range("h2"), Range("C:C"), 0) '<=== change h2 if required
End With
Cells(irow, icol) = Range("a1")
ws_Exit:
Application.EnableEvents = True
End Sub
Through the discussion group I got an answer to a question but it turns out
I can't use VBA. Can it be done through the use of formulas? Here is the
VBA that I have:
Private Sub Worksheet_Change(ByVal Target As Range)
On Error GoTo ws_Exit:
If Target.Address <> "$A$1" Then Exit Sub
Application.EnableEvents = False
With Application
icol = .Match(Range("h1"), Range("3:3"), 0) '<=== change h1 if required
irow = .Match(Range("h2"), Range("C:C"), 0) '<=== change h2 if required
End With
Cells(irow, icol) = Range("a1")
ws_Exit:
Application.EnableEvents = True
End Sub