LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX- Excel- Adding top and bottom border

Hi,

I'm trying to add a border to a range of cells in excel by the mean of activeX. I need to add only the top border and the bottom one.

I have tried using the selection property contained in Globals. I have also tried creating a style in the current excel Workbook but I do not know how to make it work.

I can only create a border arround all the range using AroundBorder.

Thanks by forehand
Download All
0 Kudos
Message 1 of 2
(4,217 Views)
You do not need to use the style or the selection property to apply the borders to specific edges of the range. Just use the Item Method to specify which one you want to modify.

Method Worksheet->Range
Property Range->Borders
Method Borders->Item(xlEdgeTop)
Property Border->Weight = xlThin

Attached is you VI modified as described.

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.
Message 2 of 2
(4,217 Views)