Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / New Users / October 2006

Tip: Looking for answers? Try searching our database.

Why can't I call my self-declared function?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Javad - 15 Oct 2006 01:05 GMT
Hello

I wrote this code in the General Declaration part of my Excel workbook (in
the VB environment):

Public Function jvdADD(Word1, Word2)
   jvdADD = Word1 & Word2

End Function

Now, after saving the workbook, I expected to be able to call this function
from the standard environment of the workbook. For example I wrote in A3:
=jvdadd(a1,a2)

but it gave me:
#NAME?

how can I call that function from the standard environment of my workbook?

thank you
Niek Otten - 15 Oct 2006 12:17 GMT
The code should be in a General Module, not a Workbook or Worksheet Module

Signature

Kind regards,

Niek Otten
Microsoft MVP - Excel

| Hello
|
[quoted text clipped - 16 lines]
|
| thank you
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.