Question-user defined function

  • Thread starter Thread starter ppyxl
  • Start date Start date
P

ppyxl

Hi,

I got a function like this:
___________________________________
Function SumString(ByVal str1 As String, ByVal datef As Date)

SumString = str1 + Str(datef)

End Function
___________________________________

It works fine yesterday. I can directly use in my excel sheet lik
other function. But today, the cell only gives me
#NAME?
why? and how can i activate this function again?

Thanks
 
Hello ppyxl

My guess is that your macro was written on one of your Worksheets. I
so you need to add a Module to your Workbook and place your macr
there

Sincerely
Leith Ros
 
Ross,

Thanks for reply. I did copy to the workbook that I am using.

Straight thing is now I reopen, the function works again. I want t
know whether there is some problem within.

ppyx
 

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

Back
Top