没有简单方法,只能try catch
try Functions.add("test", "") msgbox("没添加") Functions.remove("test")catch ex As exception msgbox("已添加")End try