IsMissing
'版本1''''''''''''''''''''''''''''''''''''''''''
if judgeRangeType(currentRange)=3 then
可执行变量(currentRange)
else
end if
public function 执行功能(Optional Rng as Variant) as Variant
if IsMissing(Rng) then
Exit function
else
if judgeRangeType(currentRange)=3 then
Exit function
else
end if
end if
end function
'版本2''''''''''''''''''''''''''''''''''''''''''一般 Return String 函数采用方法
call 可执行变量(currentRange)
public function 执行功能(Optional Rng as Range) as String
执行功能=""
if IsMissing(Rng) then Exit function
if not judgeRangeType(currentRange)=3 then Exit function
end function