+ Reply to Thread
Results 1 to 4 of 4

Can't pass values to module from a Userform (button)

  1. #1
    Registered User
    Join Date
    08-06-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Can't pass values to module from a Userform (button)

    Hello

    I would like to pass the value of two variables to a module, and it gives me a "ByRef argument type mismatch" error. Both variables contain dates.

    The code of the Userform

    Please Login or Register  to view this content.
    What code should I have in the module6 (Sub Pesquisa) to receive the variables?

    Sub Pesquisa( ? )

    Regards.
    FS
    Attached Images Attached Images
    Last edited by Francisco Sousa; 03-22-2013 at 07:52 PM.

  2. #2
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: Can't pass values to module from a Userform (button)

    I'm guessing here, but I think this is what you want.

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    08-06-2010
    Location
    Portugal
    MS-Off Ver
    Excel 2007
    Posts
    35

    Re: Can't pass values to module from a Userform (button)

    Thank you,

    You solved the problem of my code, I hope the Oklahoma City Thunder win the NBA title this year with Kevin Durant and rest of the team.

    Thank you one more time.

    Regards.
    FS

  4. #4
    Forum Contributor
    Join Date
    01-13-2013
    Location
    Oklahoma
    MS-Off Ver
    Office 2007 / Office 2010
    Posts
    123

    Re: Can't pass values to module from a Userform (button)

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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