function error

C

code_warrior

I had a custom function that converts a hyperlink into a url from cell
to cell.

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function

It used to work just fine until today. I open excel get a macros error,
then the cells with the function now display a #NAME? AND #VALUE? ERROR.
What happened? The function form is just fine.
 
D

Dave Peterson

Did you enable macros when you opened the file?

code_warrior said:
I had a custom function that converts a hyperlink into a url from cell
to cell.

Function hyp2(r As Range) As String
hyp2 = r.Hyperlinks(1).Address
End Function

It used to work just fine until today. I open excel get a macros error,
then the cells with the function now display a #NAME? AND #VALUE? ERROR.
What happened? The function form is just fine.
 
C

code_warrior

Yes, they ae set to high but it ave me an error saying it lost VD
Project. How could that happen?
 
D

Dave Peterson

I don't know. Maybe the workbook was corrupted somehow?

Can you restore from a backup?
 
C

code_warrior

No, Apparently macros had been disabled because the security level was
set to high was not digitally signed by a trusted cerificate. I guess I
can either lower the security level but the module is a VB module, why
wouldnt it be trusted?
 
D

Dave Peterson

Because anyone can give you a workbook with macros in it. And not everyone has
nice macros.

It's up to you to decide whom to trust.

But that doesn't explain how the project was lost????
 

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