Calling a Sub or Function contained in a module using “CallByName” in VB/VBA

前端 未结 5 870
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-04 18:25

It is easy to call a function inside a classModule using CallByName How about functions inside standard module?

\'\'#inside class module
\'\'#classModule nam         


        
5条回答
  •  失恋的感觉
    2021-01-04 19:02

    Unfortunately it is not possible to prepend the ProjectName before the ModuleName and add another period "." In MS Word this throws a runtime error 438. The call is restricted to the use of simply ModuleName.ProcName.

提交回复
热议问题