Macro stopped working for no reason

Obewan

Board Regular
Joined
Aug 25, 2021
Messages
68
Office Version
  1. 365
Platform
  1. Windows
I have been using the same Macro for ages and occasionally it says it has an issue and I have managed to fix it by deleting pages then adding them back and so on. This time I can't - it stops here at the bold text saying
"
Invalid forward reference:, or reference to uncompiled type."

Sub FullFilter()
'
' FullFilter Macro
'

'

Range("R1:Al1").Select
Application.CutCopyMode = False
Selection.AutoFilter
ActiveSheet.Range("$R$1:$Al$4250").AutoFilter Field:=5, Criteria1:="<>"


Just doesn't make sense - anu suggestions?

regards

Seamus
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Further to this all my macros have disappeared from the list when I click on the macros icon?
 
Upvote 0
I fixed it - has to delete sheet, then another, then another and add them back and finally worked.
 
Upvote 0

Forum statistics

Threads
1,215,119
Messages
6,123,172
Members
449,094
Latest member
bes000

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top