Dim LastCell as Range
Dim FullRange as Range
Set LastCell = LatitudeCell.End(xlDown)
Set FullRange = Range(LatitudeCell.Offset(1,0), LastCell)
那是VBA中的代码。除了枚举器 xlDown 可能需要根据 .Net 库进行限定之外,它与 VB.Net 相同。
在 VB.NET 中是
Imports Microsoft.Office.Interop
Dim LastCell As Excel.Range
Dim FullRange As Excel.Range
LastCell = LatitudeCell.End(Excel.XlDirection.xlDown)
FullRange = ExcelWorksheet.Range(LatitudeCell.Offset(1, 0), LastCell)
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句