Function RRel(colmn, Optional offst, Optional rng)
If offst Is Nothing Then Set offst = -1
If rng Is Nothing Then Set rng = Application.Caller
RRel = Intersect(colmn, rng.offset(offst, 0).EntireRow)
End Function
当我尝试将其用作excel公式时,例如,=RRel(P:P)
,我会得到一个错误:
Compile error:
object required
调试点位于函数头上