Automatically Maximizing a form

Steve Jukes

Board Regular
Joined
Apr 15, 2002
Messages
83
Is it possible to automatically maximize a form according to the users screen settings.

Any help much appreciated.

Steve
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Steve

I don't know if this will work with different screen settings, but one way to maximise a form is as follows:

Set up an "AutoExec" Macro. This is a macro with is performed on opening up the database. If you want a particular form to open on start up, you can set it to "Maximise".

Go to the Macro tab, click New. In the "Action" column, select the drop down list and scroll down. If you want a particular form to open, select "openform" - at the bottom of the screen click in "Form Name" and select the form you want. Now click in the next Action line and from the drop down box select "maximise".

Save the Macro and call it "AutoExec". When you start up the database, this macro will run and maximise the form. PLay around with this and see if does what you want.

Hopefully this will help. Sorry if it doesn't

Chubbychap :p
 
Upvote 0
One more thing.,....

Alternatively, if you are already in the database and need to go to the maximised form from a different location, you could create a macro in the similar way as mentioned before and create a button in a suitable location and link the macro to the button - thus the form will be opened and maximised.

Cheers

Chubbychap :p
 
Upvote 0
Also, you could right click your form in design view and choose Built Event (you may have to choose Code Builder as well). Place this code in your form code module:-

Private Sub Form_Open(Cancel As Integer)
DoCmd.Maximize
End Sub
 
Upvote 0

Forum statistics

Threads
1,221,531
Messages
6,160,357
Members
451,642
Latest member
mirofa

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