Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27186

Create a border in excel

$
0
0
I trying to create a border on excel page


I have added Imports System.Drawing as well as office interopt the excel document creates fine baring the border part

excel.range("B7:B7").select()


With excel.Selection.Borders(xlEdgeBottom)
.LineStyle = linestyle.type.xlContinuous
.ColorIndex = 0
.TintAndShade = 0
.Weight = xlThin
End With



Vs does not like the xlEdgeBottom linestyle.type.xlContinuous and .Weight = xlThin is there a referance I am missing or is my code just wrong the entire document I have created is perfect just those sections I have a problem withAttachment 94305
Attached Images
 

Viewing all articles
Browse latest Browse all 27186

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>