|
本帖最后由 ArcaneJ 于 2018-7-19 22:43 编辑
Dim Rng
Dim TimedicH As Object
Dim TimerngH As Variant,DateH
Set TimedicH = CreateObject("scripting.dictionary")
Rng = Range("A2:O" & rw)
For i = 1 To UBound(Rng)
If Rng(i, 2) = "H" And TimedicH.exists(Rng(i, 11)) = False Then TimedicH.Add Rng(i, 11), ""
Next i
ReDim TimerngH(0 To TimedicH.Count)
TimerngH = TimedicH.keys
ReDim DateH(1, 1 To TimedicH.Count + 1)
For i = 1 To UBound(TimerngH) + 1
DateH(1, i + 1) = Application.WorksheetFunction.Small(TimerngH, i)
Next i
走到worksheetfunction.small就报“不能取得类worksheetfunction的属性,不知道哪里错了,百思不得其解
|
|