Example Code

Delete an Excel Worksheet

Code and Documents

Attachment

This example program demonstrates how to delete an Excel Worksheet using ActiveX controls. You must specify the full path to the file you want to modify and include the correct sheet name for this example to work properly. When run, this example deletes the specified sheet. If there is data in the sheet you will be prompted to permanently delete the data.

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

Contributors