#NAME? error in Excel for VBA Function

后端 未结 12 995
耶瑟儿~
耶瑟儿~ 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:50

    I had a similar persistent problem with one of my functions when everything else seemed fine. Open the worksheet & go to the Developer Tab. Open VBA, and back on the Developer ribbon select "View Code". See if it opens any similar Code (apart from your Module) specific to that worksheet (eg. Sheet2 (Code). I found that I had duplicated the code on the worksheet in addition to the Module. Delete the "worksheet" code. (You may need to save the workbook & re-open at this stage). When I deleted the worksheet code, the module function then worked.

提交回复
热议问题