Application.Visible = False but with Task bar icon

Krosis

New Member
Joined
Sep 10, 2021
Messages
23
Office Version
  1. 365
Platform
  1. Windows
So the current code im working with will hide all workbooks and load the userform. Im wanting it to only hide the workbook the userform is connected to and if possible leave the taskbar icon visible as the userform is easily lost behind other documents.

VBA Code:
Sub Button1_Click()
Application.Visible = False
Userform1.Show
End Sub

Iv had a look around and was able to find the code below which gets me a little closer (kind of gives me a taskbar icon) however this minimizes the userform until opened via taskbar and if selected again makes the workbook visiable.

VBA Code:
Sub Button1_Click()
Application.Visible = False
Application.Windowstate = xlMinimized
Application.Visible = True
End Sub

Any suggestions would be great. Thanks!
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.

Forum statistics

Threads
1,214,892
Messages
6,122,112
Members
449,066
Latest member
Andyg666

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