.
I am puzzled by this error. The following macro was working today and then ... without any edits ... the macro stopped working properly.
This is what I am seeing now after filtering :
Search Error.jpg
This is the same macro that was working a few hours ago :
Except for the EXCEL GREMLINS having infected the workbook .... is there anything needing changing in the macro ?
I have already edited the following line :
To Cells(4,1) .... and Cells(5,1). Didn't work.
?????
(Maybe the workbook caught Covid-19 ?)
I am puzzled by this error. The following macro was working today and then ... without any edits ... the macro stopped working properly.
This is what I am seeing now after filtering :
Search Error.jpg
This is the same macro that was working a few hours ago :
Code:
Sub FilterAllCols2()
Application.ScreenUpdating = False
Dim LastRow As Long, x As Long
Dim y As Object
Range("D:D").Columns.TextToColumns DataType:=xlDelimited, FieldInfo:=Array(1, 2)
LastRow = Cells.Find("*", SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
For x = 1 To 4
If ActiveSheet.OLEObjects("TextBox" & x).Object <> "" Then
With Cells(3, 1).CurrentRegion
.AutoFilter x, "*" & ActiveSheet.OLEObjects("TextBox" & x).Object.Text & "*"
End With
End If
Next x
Sheet2.Label9.Caption = Application.WorksheetFunction.Subtotal(3, Range("A3:A500000"))
Application.ScreenUpdating = True
Range("A2").Select
End Sub
Except for the EXCEL GREMLINS having infected the workbook .... is there anything needing changing in the macro ?
I have already edited the following line :
Code:
With Cells(3, 1).CurrentRegion
?????
(Maybe the workbook caught Covid-19 ?)