Quantcast
Channel: #NAME? error in Excel for VBA Function - Stack Overflow
Viewing all articles
Browse latest Browse all 14

Answer by Karen for #NAME? error in Excel for VBA Function

$
0
0

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.


Viewing all articles
Browse latest Browse all 14




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>