LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error whe

n trying to typecast a Text Excel reference into ActiveX. When I browse ActiveX Class I can select Microsoft Excel Textbox, but not if I check the Createable objects only box. Is this the source of my error? Is there a way to make this a creatable object?I am using Labview 7.0
0 Kudos
Message 1 of 2
(2,547 Views)
n trying to typecast a Text Excel reference into ActiveX. When I browse ActiveX Class I can select Microsoft Excel Textbox, but not if I check the Createable objects only box. Is this the source of my error? Is there a way to make this a creatable object?Only selected on objects can be created. They are typically stand-alone objects that do not depend upon a relationship to another object. The Textbox can only exist on a worksheet and an EditBox can only exist on a form.

If you want to create a TextBox on your worksheet, use the ActiveX function:
Excel._Worksheet.Shapes.AddTextbox (orientation, left, top, width, height)

You can add several TextBoxes and position each one where you want it on the sheet. I recommend that you cascade the AddTextbox reference into a Property Node->Name and use the Item method to select each TextBox by Name. See the screenshot example.

Michael Munroe
Certified LabVIEW Developer
www.abcdef.biz
Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.1, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 2 of 2
(2,547 Views)