I did it I did it I did it!!!, Ok after realizing you were using my original macros I thought I would give it one more shot and Voila!! I got it to work!! Now that I see how it plays out I am not going to create a button that will "Unhide" All (Added a button to process the macro and tested it and it appears to be working as it should.) For your viewing pleasure here is my code
Sub HideSomeColumns()
Select Case Range("I3").Value
Case "GBP"
HideColumns
Case "USD"
USDHide
Case "0"
AutofilterOnly
Case Else
' do nothing
End Select
End Sub
Sub HideColumns()
'
' HideColumns Macro
' Macro recorded 9/16/2010 by dmau
'
'
Range("E:E,G:G,L:L,N:N,P:P").Select
Range("P1").Activate
Selection.EntireColumn.Hidden = True
Selection.AutoFilter Field:=21, Criteria1:="<>0", Operator:=xlAnd
ActiveWindow.ScrollColumn = 4
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Selection.AutoFilter Field:=2, Criteria1:="<>0", Operator:=xlAnd
End Sub
Sub USDHide()
'
' USDHide Macro
' Macro recorded 9/16/2010 by dmau
'
'
ActiveWindow.SmallScroll ToRight:=3
Range("F:F,H:H,M:M").Select
Range("M1").Activate
ActiveWindow.SmallScroll ToRight:=2
Range("F:F,H:H,M:M,O:O,Q:Q").Select
Range("Q1").Activate
Selection.EntireColumn.Hidden = True
Selection.AutoFilter Field:=21, Criteria1:="<>0", Operator:=xlAnd
ActiveWindow.ScrollColumn = 4
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Selection.AutoFilter Field:=2, Criteria1:="<>0", Operator:=xlAnd
End Sub
Sub AutofilterOnly()
'
' AutofilterOnly Macro
' Macro recorded 9/22/2010 by dmau
'
'
ActiveWindow.SmallScroll ToRight:=3
Selection.AutoFilter Field:=21, Criteria1:="<>0", Operator:=xlAnd
ActiveWindow.ScrollColumn = 3
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Selection.AutoFilter Field:=2, Criteria1:="<>0", Operator:=xlAnd
End Sub
:D
Bookmarks