Macro - Run App

S

Secret Squirrel

I have an AutoExec macro that fires when my database is opened. I have a
command line that uses the "Run App" command. The program that I am starting
needs to be minimized to the taskbar once started. Is there any way to add a
command to this command in my macro that will automatically minimize the app
instead of having the user minimize it?
 
P

pietlinden

I have an AutoExec macro that fires when my database is opened. I have a
command line that uses the "Run App" command. The program that I am starting
needs to be minimized to the taskbar once started. Is there any way to add a
command to this command in my macro that will automatically minimize the app
instead of having the user minimize it?

DoCmd.Minimize
 
S

Secret Squirrel

That minimizes my access database. I need to just minimzie the program I'm
firing from my macro, not the access database.
 
P

Pieter Wijnen

If you use the shell function instead of runapp, you can provide it with a
parameter controlling the size of the App
ie
shell("notepad.exe",6)

HtH

Pieter
 
Top