gmcgough600
New Member
- Joined
- Nov 21, 2017
- Messages
- 33
- Office Version
- 365
Hi,
Looking for some advice on what could cause the variable exclude_yes_no to always be "Error 2015", doesn't seem to matter what is contained in the lookup value and lookup array cell(s).
Thanks in advance!
For info above this code I have code which sets current_selected_row_title_exc, last_row_exclusions_sheet etc to the correct cell row numbers and have checked this.
Looking for some advice on what could cause the variable exclude_yes_no to always be "Error 2015", doesn't seem to matter what is contained in the lookup value and lookup array cell(s).
Thanks in advance!
For info above this code I have code which sets current_selected_row_title_exc, last_row_exclusions_sheet etc to the correct cell row numbers and have checked this.
VBA Code:
current_selected_row_title_exc = Range("B" & current_row_input_sheet)
For current_row_exclusions = 1 To last_row_exclusions_sheet
Sheets("Exclusions").Select
exclude_yes_no = Application.Match(Cells(current_row_exclusions, 1), current_selected_row_title_exc, 0)
'With Sheets(“Input”).Range("B" & current_row_input_sheet)
'Set Rng = .Find(What:=“Amazon”)
'End With
Sheets("Input").Select
'Add 'exclusion' as reason for moving
Next current_row_exclusions