Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I created a UDF but I can't run the function ...

I created a UDF but I can't run the function. Do I have to save the function
under the worksheet or workbook or something else? Also, do I need the
Analysis toolpak - VBA to make the function work. The function is as follows:

Function GetHyperlinkAddress(Rng As Range) As String
With Rng
If .Hyperlinks.Count 0 Then
GetHyperlinkAddress = .Hyperlinks(1).Address
End If
End With
End Function
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,089
Default I created a UDF but I can't run the function ...

Works for me:

=GetHyperlinkAddress(B1) on the worksheet.

I put it in a standard module. I've got the Analysis Pack but I don't think
you need it.

Regards

Trevor


"bhilton84" wrote in message
...
I created a UDF but I can't run the function. Do I have to save the
function
under the worksheet or workbook or something else? Also, do I need the
Analysis toolpak - VBA to make the function work. The function is as
follows:

Function GetHyperlinkAddress(Rng As Range) As String
With Rng
If .Hyperlinks.Count 0 Then
GetHyperlinkAddress = .Hyperlinks(1).Address
End If
End With
End Function



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I created a UDF but I can't run the function ...

I'm getting an error on my worksheet of #NAME? ...

What does this mean?

"Trevor Shuttleworth" wrote:

Works for me:

=GetHyperlinkAddress(B1) on the worksheet.

I put it in a standard module. I've got the Analysis Pack but I don't think
you need it.

Regards

Trevor


"bhilton84" wrote in message
...
I created a UDF but I can't run the function. Do I have to save the
function
under the worksheet or workbook or something else? Also, do I need the
Analysis toolpak - VBA to make the function work. The function is as
follows:

Function GetHyperlinkAddress(Rng As Range) As String
With Rng
If .Hyperlinks.Count 0 Then
GetHyperlinkAddress = .Hyperlinks(1).Address
End If
End With
End Function




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default I created a UDF but I can't run the function ...

Did you put it in a standard module?


--
Regards,

Peo Sjoblom



"bhilton84" wrote in message
...
I'm getting an error on my worksheet of #NAME? ...

What does this mean?

"Trevor Shuttleworth" wrote:

Works for me:

=GetHyperlinkAddress(B1) on the worksheet.

I put it in a standard module. I've got the Analysis Pack but I don't
think
you need it.

Regards

Trevor


"bhilton84" wrote in message
...
I created a UDF but I can't run the function. Do I have to save the
function
under the worksheet or workbook or something else? Also, do I need the
Analysis toolpak - VBA to make the function work. The function is as
follows:

Function GetHyperlinkAddress(Rng As Range) As String
With Rng
If .Hyperlinks.Count 0 Then
GetHyperlinkAddress = .Hyperlinks(1).Address
End If
End With
End Function






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
bj bj is offline
external usenet poster
 
Posts: 1,397
Default I created a UDF but I can't run the function ...

if you are getting the #name error, it is not recognizing it as a function.
are you typing it in or using the function wizard to enter it in the cell?

"bhilton84" wrote:

I'm getting an error on my worksheet of #NAME? ...

What does this mean?

"Trevor Shuttleworth" wrote:

Works for me:

=GetHyperlinkAddress(B1) on the worksheet.

I put it in a standard module. I've got the Analysis Pack but I don't think
you need it.

Regards

Trevor


"bhilton84" wrote in message
...
I created a UDF but I can't run the function. Do I have to save the
function
under the worksheet or workbook or something else? Also, do I need the
Analysis toolpak - VBA to make the function work. The function is as
follows:

Function GetHyperlinkAddress(Rng As Range) As String
With Rng
If .Hyperlinks.Count 0 Then
GetHyperlinkAddress = .Hyperlinks(1).Address
End If
End With
End Function






  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default I created a UDF but I can't run the function ...

I didn't have it in the standard module ... THANKS EVERYONE!!!

"bj" wrote:

if you are getting the #name error, it is not recognizing it as a function.
are you typing it in or using the function wizard to enter it in the cell?

"bhilton84" wrote:

I'm getting an error on my worksheet of #NAME? ...

What does this mean?

"Trevor Shuttleworth" wrote:

Works for me:

=GetHyperlinkAddress(B1) on the worksheet.

I put it in a standard module. I've got the Analysis Pack but I don't think
you need it.

Regards

Trevor


"bhilton84" wrote in message
...
I created a UDF but I can't run the function. Do I have to save the
function
under the worksheet or workbook or something else? Also, do I need the
Analysis toolpak - VBA to make the function work. The function is as
follows:

Function GetHyperlinkAddress(Rng As Range) As String
With Rng
If .Hyperlinks.Count 0 Then
GetHyperlinkAddress = .Hyperlinks(1).Address
End If
End With
End Function



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with function created in VBA Bob K Excel Worksheet Functions 3 December 15th 06 10:12 PM
Edit created worksheet function davidmac1954 Excel Worksheet Functions 1 October 10th 06 06:04 PM
Validation function that created from another drop down list Jamie Excel Discussion (Misc queries) 2 May 9th 06 12:56 AM
How do I total a column which was created using the MID function? CindyB Excel Worksheet Functions 6 February 10th 05 05:37 AM
How do I add help text to an excel function I have created Peter 99 Excel Worksheet Functions 2 January 14th 05 06:04 PM


All times are GMT +1. The time now is 11:14 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"