Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Importing Macros into Visual Basic Projects (Report Generation Toolkit)

LabVIEW 2013 Report Generation Toolkit for Microsoft Office Help

Edition Date: June 2013

Part Number: 370274G-01

»View Product Info

If you are using a Microsoft Word or Microsoft Excel template that contains a macro, you can manually import the module containing the macro into the Visual Basic for Applications (VBA) project associated with the template. Complete the following steps to import the module manually.

  1. Open the template in Word or Excel.
  2. Select Tools»Macro»Visual Basic Editor.
Note   (Microsoft Word or Excel 2007) On the Developer tab, select Visual Basic.
  1. In the project window of the Visual Basic editor, right-click the template and select Import File from the shortcut menu.
  2. Select the file in which the macro is defined and click the Open button.

The Word Import Module VI and the Excel Import Module VI can import modules dynamically from a VBA function file (.bas) or from a LabVIEW string that contains the module source code.


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit