Jump to content
Sign in to follow this  

Forcing and Excel window to the front from Labview

Recommended Posts

Hi, first time post here. I've been using Labview for around 6 years now for production and test machine automation and think it's pretty good.

I've recently made a vi that turns opens Excel and makes an identical copy of a Labview xy chart so I can print it out or save it etc. I've got it all working after a lot of trial and error, courtesy of the rather random Excel VBA structures.

My last problem is in making the Excel window the front window. I've tried every variation I can think of in terms of minimising/hiding the Labview window and making the Excel window/chart/application activated/maximised etc but I'm still not there.

I've read about windows z lists and "bringwindowtofront".

Is there some way I can get an automation reference to the windows z list or whatever? I can't find anything in the Excel application ActiveX options to force Excel to the front.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.