Jan 24 2024 05:48 AM
Hello can you help me ?
i get error1004 after executing this macro, it has something to do with delete method could you please help me fixing that ?
(Base bellow for testing)
Jan 24 2024 06:00 AM
SolutionThe code tries to delete the header row of the table on Updated.
To avoid that, change the line
Set idCol2 = WSheet2.Range("B2:B" & lastRow2)
to
Set idCol2 = WSheet2.Range("B3:B" & lastRow2)
Jan 24 2024 08:15 AM
Jan 24 2024 06:00 AM
SolutionThe code tries to delete the header row of the table on Updated.
To avoid that, change the line
Set idCol2 = WSheet2.Range("B2:B" & lastRow2)
to
Set idCol2 = WSheet2.Range("B3:B" & lastRow2)