minimize Excel but view input box.

wmtsub

Active Member
Joined
Jun 20, 2018
Messages
322
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
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
That code works fine for me... what if you change the first line to:

Code:
application.visible=false

Whenever in the code you'd like the application to show up again, type this:
Code:
application.visible=true

Does this work?
 
Upvote 0
Nope,
Same behavoir. What I was hoping for was when the spredsheet is opened it is not seen [hidded - minimized - etc] but the inout box would be.
It does this except teh input box is behind other windows and sometimes on the other monitor.
 
Upvote 0

Forum statistics

Threads
1,215,372
Messages
6,124,532
Members
449,169
Latest member
mm424

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top