How do I make Excel disappear while running VBA?

manney

New Member
Joined
Mar 25, 2002
Messages
46
I'm writing an application that works only through form modules. I'd like Excel itself to minimize and leave only the form on the screen.

My application runs automatically when the workbook opens. The VBA commands are--

Application.WindowState = xlMinimized
frmMyForm.Show

Excel minimizes, and then the Excel toolbar icon flashes. When the icon is clicked, MyForm comes up.

I'd like MyForm to appear without the icon's having to be clicked.

I'm running Office 2000 under Windows 98 on a Compaq laptop.

Any bright ideas? Thank you.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Going one step further with the above code, is it possible to have EXCEL stay minimized upon opening so that the form itself just appears? Application.Screenupdating=false doesn't seem to work, or perhaps I have it placed in the wrong area.
 
Upvote 0

Forum statistics

Threads
1,214,974
Messages
6,122,536
Members
449,088
Latest member
RandomExceller01

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