Hi,
I defined the name 'Criteria' as shown in the image and updated the code part shown in BOLD below (removed Hoja2! from "Hoja2!Criteria")
You need to be in the sheet where you want the filtered rows when you run the macro. Also Row 6 on that sheet should NOT have any column heading which is not in the Hoja1 sheet, row 4.
Sub Macro2()
'
' Macro2 Macro
'
Application.CutCopyMode = False
Sheets("Hoja1").Range("B4:J97").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("Criteria"), CopyToRange:=Range("B6"), Unique _
:=False
End Sub