Visor
Member
Dear friends of the forum, some time ago, I received support with a macro vba excel theme and it worked fine but now it stopped working.
Can you give me any idea of what might have happened?
This is de code
The code gives me error in:
The link where I received support was this:
http://forum.chandoo.org/threads/sh...letter-of-the-commanbutton.29517/#post-176430
Until a certain time it worked well in the work file, now it does not ... I am very thankful for your comments.
Can you give me any idea of what might have happened?
This is de code
Code:
Sub FilterList(xLet As String)
Dim rngFilter As Range
'Application.ScreenUpdating = False
'What range are we going to filter?
Set rngFilter = Range("B8").CurrentRegion
'Resize to give a header row
Set rngFilter = rngFilter.Offset(-1).Resize(rngFilter.Rows.Count + 1)
'Apply Filter
ActiveSheet.AutoFilter.ShowAllData
rngFilter.AutoFilter field:=1, Criteria1:="=" & xLet & "*"
'Application.ScreenUpdating = True
End Sub
The code gives me error in:
Code:
Set rngFilter = rngFilter.Offset(-1).Resize(rngFilter.Rows.Count + 1)
The link where I received support was this:
http://forum.chandoo.org/threads/sh...letter-of-the-commanbutton.29517/#post-176430
Until a certain time it worked well in the work file, now it does not ... I am very thankful for your comments.