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

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Drmwvr7266

Board Regular
Joined
Apr 7, 2002
Messages
164
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.
 

Forum statistics

Threads
1,147,508
Messages
5,741,570
Members
423,668
Latest member
Audorin

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
Top