如何在VBA中的函数内调用函数?

时间:2019-04-28 15:30:14

标签: excel vba

我试图在另一个函数中调用VBA函数,例如:

Function funcA() As String
  ' some code
Function End

Function funcB() As String
  Dim i As String
  i = funcA()
  funcB = i
Function End

但是,当我尝试运行包含funcB的子程序时,无效标识符错误在我在funcB中调用funcA的位置弹出。怎么了谢谢!

2 个答案:

答案 0 :(得分:2)

替换:

(1,3799)

具有:

Function End


End Function

答案 1 :(得分:1)

您遇到了编译器错误:将End Function的Function End替换为

相关问题