Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

activate pid

Status
Not open for further replies.

joki75

Programmer
Sep 20, 2007
1
DK
Hi.

I use the shellexecute command to run af program.
I then get the pid when the program starts. How can i restore/maximize the program using the the pid next time the user a click the button
 
joki75,
With API's. Here are a couple of links. They are not specifiacally for VBA but they should get you moving in the right direction.
[ul][li]MSKB: How To Find a Window Handle from an Instance Handle[/li]
[li]MSDN: ShowWindow Function[/li][/ul]

Hope this helps,
CMP

[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT-07:00) Mountain Time (US & Canada)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top