Hello,
I am looking for a VBA sentence which make possible to copy a full data base which can change (Relative Reference) using the advance filter:
Sub MacroTest()
'
' MacroTest Macro
'
'
Workbooks("Other Excel file containing the Data Base.xlsx").Sheets("Data").Range("A3:EN3897"). _
AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"'Reference Sheet!Extract"), Unique:=False
Windows("Other Excel file containing the Data Base.xlsx").Activate
Windows("Reference Sheet.xlsx").Activate
End Sub
How can I change that: ("A3:EN3897"). to a relative reference type?
Thnak you for your help,
Marc
I am looking for a VBA sentence which make possible to copy a full data base which can change (Relative Reference) using the advance filter:
Sub MacroTest()
'
' MacroTest Macro
'
'
Workbooks("Other Excel file containing the Data Base.xlsx").Sheets("Data").Range("A3:EN3897"). _
AdvancedFilter Action:=xlFilterCopy, CopyToRange:=Range( _
"'Reference Sheet!Extract"), Unique:=False
Windows("Other Excel file containing the Data Base.xlsx").Activate
Windows("Reference Sheet.xlsx").Activate
End Sub
How can I change that: ("A3:EN3897"). to a relative reference type?
Thnak you for your help,
Marc