PDA

View Full Version : Solved: Open new application in maximized position



sujittalukde
04-19-2008, 01:03 AM
I am using the following code to open an exe file:


Sub CalcOpen()
Shell "C:\Program Files\TaxPro\TaxPro Calc\TaxPro Calc.exe"
End Sub

This is working well but the application so opened get minimized Can this b modified so that the new application will not be minimized ie will open in maximized position?

tstav
04-19-2008, 02:15 AM
Try adding a 'comma 3' at the end of the statement, like this
Shell "C:\Program Files\TaxPro\TaxPro Calc\TaxPro Calc.exe", 3

Edit: In your code, type Shell and press F1. You'll get a wealth of information on Shell parameters

sujittalukde
04-19-2008, 03:21 AM
Thanks its working and also thanks for the Note.