+ Reply to Thread
Results 1 to 6 of 6

Byref error when i use UDF in procedure

  1. #1
    Registered User
    Join Date
    01-30-2015
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    31

    Byref error when i use UDF in procedure

    Hi

    I am trying to use the UDF inside procedure, but I get byref error.

    what could be the problem in the code below.

    Please Login or Register  to view this content.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Byref error when i use UDF in procedure

    Answer retracted...
    Last edited by MarvinP; 02-01-2015 at 04:38 PM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Byref error when i use UDF in procedure

    You're passing an object (a range) to a function that is expecting a string.

    Please Login or Register  to view this content.
    ... or

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  4. #4
    Registered User
    Join Date
    01-30-2015
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    31

    Re: Byref error when i use UDF in procedure

    thanks shg

  5. #5
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Byref error when i use UDF in procedure

    Try changing

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    01-30-2015
    Location
    Europe
    MS-Off Ver
    2010
    Posts
    31

    Re: Byref error when i use UDF in procedure

    thank you Marvin

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] "ByRef argument type mismatch error" trying to use my first UDF
    By capson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2014, 08:46 PM
  2. Error passing element of string array get ByRef argument type mismatch
    By welchs101 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-17-2011, 02:59 PM
  3. Replies: 1
    Last Post: 02-08-2006, 06:25 AM
  4. "ByRef argument type mismatch" Error
    By Baapi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2005, 08:05 PM
  5. ByRef argument type mismatch error?
    By sermest in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-17-2005, 02:05 PM

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1