#Name error for VBA function

W

William Ladd

I keep getting a #Name error for a VBA function that I have created. I have
even made the function so simple that it just returns 1 and I still get the
error. I'm selecting it from the Insert>Formulas Section and it does show
up under User Defined functions. It is a general function as well. I'm
running a networked version of Excel 97. Any help at all would be
appreciated. Thanks in advance.

Bill Ladd.
 
W

William Ladd

Well, I found my problem. I was creating my function as a Microsoft Excel
Object under sheet1. Once I created a new module and put the code there
everything ran fine. Sorry for taking up the space - hopefully this will
help other similarly clueless VBA programmers! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top