#NAME? error in Excel for VBA Function

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

    Here's why I got that error. This answer is not provided so far.

    If you have two or more workbooks (spreadsheets) open, then you may have your module under the other workbook - not the only you want to do the calculation on. This may seem impossible but ... as soon as you open the Developer/VBA code editor Excel wants to show you the structure (objects, modules, etc) of every open workbook. It's not what I expect as a developer, but there it is. So like me, you may have pressed 'Add module' and dropped the code in another workbook and worksheet.

    If this is your issue, nothing mention above will work. Move your VBA module and code to the correct spreadsheet visible through this VBA code editor.

提交回复
热议问题