Consulting

Results 1 to 3 of 3

Thread: Solved: Open new application in maximized position

  1. #1

    Solved: Open new application in maximized position

    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?

  2. #2
    VBAX Mentor tstav's Avatar
    Joined
    Feb 2008
    Location
    Athens
    Posts
    350
    Location
    Try adding a 'comma 3' at the end of the statement, like this
    [vba]Shell "C:\Program Files\TaxPro\TaxPro Calc\TaxPro Calc.exe", 3[/vba]

    Edit: In your code, type Shell and press F1. You'll get a wealth of information on Shell parameters
    He didn't know it was impossible, so he did it. (Jean Cocteau)

  3. #3
    Thanks its working and also thanks for the Note.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •