vba到vb.net
下面这个excel中有宏怎样改,才能在vb.net中运行
Sub Macro2()
'
' Macro2 Macro
' 宏由 Administrator 录制,时间: 2007-7-17
'
'
Range("C5:F5").Select
With Selection _______________________此处提示无法找到workbook
.HorizontalAlignment = xlCenter
.VerticalAlignment = xlCenter
.WrapText = False
.Orientation = 0
.AddIndent = False
.IndentLevel = 0
.ShrinkToFit = False
.ReadingOrder = xlContext
.MergeCells = False
End With
Selection.Merge
End Sub