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