我一直在尝试各种方式,以找到最后一段路段,并将这一数字退回到一条路边,没有结果。
这里,我有这部法律。
Sub StartHere()
Dim oSheet As Worksheet
Set oSheet = WorkSheets(1)
ProcessData(oSheet)
End Sub
Sub ProcessData(ByVal wkst As Worksheet)
Dim rng As Range
Dim lastRow As Long
set range
Set rng = wkst.Range("L:S") Range that i want to process data on
get the last row (in Long datatype)
lastRow = CLng(getLastRowInRange(rng))
End Sub
Function getLastRowInRange(ByRef rng As Range)
getLastRowInRange = rng.Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows,_ SearchDirection:=xlPrevious).Row
End Function
我正在把米斯马特语打成型号。
getLastRowInRange = rng.Cells.Find(What:="*", After:=[A1], SearchOrder:=xlByRows,_ SearchDirection:=xlPrevious).Row
Any clues, guys?