ThrottleWorks
Excel Ninja
Hi,
I am trying to do an advance filter with macro.
I am getting error as Method ‘Range’ of object’ _Global’ failed while running advanced filter while running below mentioned line.
Surprising part is, I have copied this macro file from folder A to folder B.
In original file at folder A, this macro is running fine but when I try to run this macro from macro file in folder B, I am getting error.
Since, I have made multiple changes in other modules of the latest file, cannot revert to original file.
I copied the entire module from previous file, pasted this module in new file, even after that I am getting same error.
Even the raw data that is being used for advanced filter is same.
The sheet name where I am pasting data to run advance filer is same.
At original file, if I check range address of Range("Coverage") in IM window I am getting valid result.
However in updated file, I am not getting valid result for range in IM window.
Also, I do not know, how does this Range("Coverage") works, cause I do not have any worksheet named as "Coverage"
Can anyone please help me in this.
I am trying to do an advance filter with macro.
I am getting error as Method ‘Range’ of object’ _Global’ failed while running advanced filter while running below mentioned line.
Code:
Range("Coverage").AdvancedFilter Action:=xlFilterCopy, _
CriteriaRange:=Range("K1:L2"), CopyToRange:=Range("O1:W1"), Unique:=False
Surprising part is, I have copied this macro file from folder A to folder B.
In original file at folder A, this macro is running fine but when I try to run this macro from macro file in folder B, I am getting error.
Since, I have made multiple changes in other modules of the latest file, cannot revert to original file.
I copied the entire module from previous file, pasted this module in new file, even after that I am getting same error.
Even the raw data that is being used for advanced filter is same.
The sheet name where I am pasting data to run advance filer is same.
At original file, if I check range address of Range("Coverage") in IM window I am getting valid result.
However in updated file, I am not getting valid result for range in IM window.
Also, I do not know, how does this Range("Coverage") works, cause I do not have any worksheet named as "Coverage"
Can anyone please help me in this.