Example Code

Bring Excel 2010 Window to Front Programmatically

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI shows an alternative way to  bring the Excel window to the front of the screen

Description:
In Excel 2010, the ActiveX calls that bring the Excel window to the front of the screen do not work.  This VI shows an alternative way to do this using the Windows API.

Steps to implement or execute code
To implement this example:

  1. Run the VI
  2. (Optional) Turn on the Highlight Execution to see the flow of the VI

To execute this example:

  1. Install the required software.
  2. Open the VI and refer the Implement Steps


Requirements
Software
LabVIEW 2012 or compatible

Hardware
-

 

bd.JPGfp.JPG

**This document has been updated to meet the current required format for the NI Code Exchange.**

Drew T.
Camber Ridge, LLC.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Comments
Dblack
Member
Member
on

Thank you. That was very helpful!