hi i was wondering if anyone could tell me why im getting a "Subscript Out of Range" error on this code??
this code is located in the Worksheet OnChange function of Sheet 2 "Corro"![]()
If Not Intersect(Target, Range("O:O")) Is Nothing Then For Each rngCell In Intersect(Target, Range("O:O")) If rngCell.row <> 1 Then Dim discArray As Variant discArray = Sheets("discSelection").Range("A1:A2") Range("AD" & rngCell.row).Value = discArray(1) End If Next rngCell End If
"discSelection" is sheet 16
any help would be much appreciated
Bookmarks