Macro starting from Row n.2

Status
Not open for further replies.

TommasoP11

New Member
Joined
Jul 24, 2021
Messages
6
Office Version
  1. 365
Platform
  1. Windows
Hi, please could you help me with this? I would like to commence this macro from Row. n.2 instead of Row. n.1:

VBA Code:
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Count > 1 Then Exit Sub
If Not Target.Column > 1 And Target.Column < 5 Then Exit Sub
If Not (Target.row > 1 And Target.row < Range("A" & Rows.Count).End(xlUp).row + 1) Then Exit Sub

Application.EnableEvents = False
Range("F" & Target.row & ":I" & Target.row).FormulaR1C1 = "=IFERROR(INDEX(R1C2:R1C4,1,MATCH(R1C,RC2:RC4,0)),"""")"
Range("F" & Target.row & ":I" & Target.row).Value = Range("F" & Target.row & ":I" & Target.row).Value
Application.EnableEvents = True

End Sub
Please which settings do I need to change in this Macro kindly provided to me to commence it from Row. n. 2? Many thanks for your help.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Status
Not open for further replies.

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,196
Latest member
Maxkapoor

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top