Results 1 to 5 of 5

Thread: custom function error.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    custom function error.

    I'm trying to create a custom function to use in my spread sheet, but it return a #NAME error, what am i doing wrong?
    [vba]Option Explicit

    Function PV_list(WOs As Range) As String
    Dim r As Range
    Dim list As String
    For Each r In WOs
    list = list & "^" & r.Value
    Next r
    PV_list = list
    End Function
    [/vba]
    Here is what it does:
    Lets say A1 = a, A2 = b and A3 = c, by typing =PV_list(A1:A3) is should get the following output: a^b^c
    This is saved in PERSONAL.xls.

    Thanks.
    Last edited by next; 04-14-2008 at 01:27 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •