VB.NET2003 Excel2000 セルを水色に塗る
公開日:
:
最終更新日:2014/01/25
未分類
記事内に広告を含む場合があります。記事内で紹介する商品を購入することで、当サイトに売り上げの一部が還元されることがあります。
'セルを水色に塗る
Dim xlInterior As Excel.Interior
xlInterior = xlActiveCell.Interior
Try
xlInterior.ColorIndex = 34
xlInterior.Pattern = xlSolid
Finally
If Not xlInterior Is Nothing Then
System.Runtime.InteropServices.Marshal.ReleaseComObject(xlInterior)
End If
End Try