#NAME? error in Excel for VBA Function

后端 未结 12 1032
耶瑟儿~
耶瑟儿~ 2020-12-31 01:01

I am making my first VBA program and trying to run the following function. The function checks a specific named range for the first row which does not have a value greater t

12条回答
  •  爱一瞬间的悲伤
    2020-12-31 01:37

    In addition to checking some of the above mentioned items, you might need to specify the filename where the custom function is actually defined, e.g. cell content =XLstart.xlsm!myCustomFunc(Arg1,Arg2) where myCustomFunc is defined in the startup file XLstart.xlsm.

    Following the Excel help for "Correct a #NAME? error":

    In the formula bar, select the [suspect] function name. In the Name Box (to the left of the formula bar), click the arrow and then select a [user-defined] function from the list that Excel suggests.

    This will add the filename per the above format.

    MS 2010, Windows 10.

提交回复
热议问题