Joneye
Well-known Member
- Joined
- May 28, 2010
- Messages
- 785
- Office Version
- 365
- 2019
- Platform
- Windows
- MacOS
I run this macro to view an area of a screen, my one problem is it returns it to an odd place in the screen.
Sub sale_out_view()
'
' sale_out_view Macro
' Macro recorded 24/03/2011 by Jon.Iremonger
'
'
Selection.AutoFilter Field:=19, Criteria1:=">01/01/2011", Operator:=xlAnd
Columns("F:O").Select
Range("O1").Activate
Selection.EntireColumn.Hidden = True
Range("V1").Select
ActiveCell.FormulaR1C1 = ""
Range("V1").Select
End Sub
Sub return_view()
'
' return_view Macro
' Macro recorded 24/03/2011 by Jon.Iremonger
'
'
Selection.AutoFilter Field:=19
Columns("E:P").Select
Range("P1").Activate
Selection.EntireColumn.Hidden = False
Range("X1").Select
End Sub
Sub sale_out_view()
'
' sale_out_view Macro
' Macro recorded 24/03/2011 by Jon.Iremonger
'
'
Selection.AutoFilter Field:=19, Criteria1:=">01/01/2011", Operator:=xlAnd
Columns("F:O").Select
Range("O1").Activate
Selection.EntireColumn.Hidden = True
Range("V1").Select
ActiveCell.FormulaR1C1 = ""
Range("V1").Select
End Sub
Sub return_view()
'
' return_view Macro
' Macro recorded 24/03/2011 by Jon.Iremonger
'
'
Selection.AutoFilter Field:=19
Columns("E:P").Select
Range("P1").Activate
Selection.EntireColumn.Hidden = False
Range("X1").Select
End Sub