When using he code below it also minizes the input box.
I want to keep the input box viewable.
Sub MNMZ()
ActiveWindow.WindowState = xlMinimized
'want to keep this visable
Range("A2").AutoFilter 1, InputBox("Please Enter Site #")
i = Cells(1, 1).End(xlToRight).Column
Application.ScreenUpdating = False
For Each c In Range(Cells(1, 1), Cells(1, i))
If c.Column <> 1 Then
c.AutoFilter Field:=c.Column, Visibledropdown:=False
End If
Next
With Application
.WindowState = xlNormal
.Width = 883
.Height = 90
Application.ScreenUpdating = True
Application.DisplayFormulaBar = False
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHeadings = False
Application.DisplayStatusBar = False
ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayVerticalScrollBar = False
End With
End Sub
I want to keep the input box viewable.
Sub MNMZ()
ActiveWindow.WindowState = xlMinimized
'want to keep this visable
Range("A2").AutoFilter 1, InputBox("Please Enter Site #")
i = Cells(1, 1).End(xlToRight).Column
Application.ScreenUpdating = False
For Each c In Range(Cells(1, 1), Cells(1, i))
If c.Column <> 1 Then
c.AutoFilter Field:=c.Column, Visibledropdown:=False
End If
Next
With Application
.WindowState = xlNormal
.Width = 883
.Height = 90
Application.ScreenUpdating = True
Application.DisplayFormulaBar = False
ActiveWindow.DisplayWorkbookTabs = False
ActiveWindow.DisplayHeadings = False
Application.DisplayStatusBar = False
ActiveWindow.DisplayHorizontalScrollBar = False
ActiveWindow.DisplayVerticalScrollBar = False
End With
End Sub
Last edited: