Hi everyone!
I'm having an issue recreating a code I picked up from somewhere in the web. What it does is filter a table according to certain criteria, and there's a 2nd sub that restores all the information.
The problem comes when I hide the sheet that has the data, and macros don't work.
Here's the code
[pre]
[/pre]
How can I get it to run with Sheet1 hidden?
Thanks!
I'm having an issue recreating a code I picked up from somewhere in the web. What it does is filter a table according to certain criteria, and there's a 2nd sub that restores all the information.
The problem comes when I hide the sheet that has the data, and macros don't work.
Here's the code
[pre]
Code:
Sub Macro1()
'
' Macro1 Macro
'
Sheet1.Select
Range("B8").Select
Selection.CurrentRegion.Select
Range("B8:H30000").AdvancedFilter Action:=xlFilterInPlace, CriteriaRange:= _
Range("B3:H4"), Unique:=False
Range("A1").Select
End Sub
Sub Macro2()
'
' Macro2 Macro
'
'
Sheet1.Select
ActiveSheet.ShowAllData
End Sub
How can I get it to run with Sheet1 hidden?
Thanks!