+ Reply to Thread
Results 1 to 3 of 3

Compile error: Argument not optional

  1. #1
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Compile error: Argument not optional

    Hi,

    While searching for possible answer to my questions using vba, i encountered a code that really fits my needs, the problem is i can't get it to work. the posts were somehow dead because it was posted last 2010. I tried to copy it create a userform but i encountered an error which wasn't a problem by the user who posted it. Can someone help me in debugging this code:

    Please Login or Register  to view this content.
    I highlighted the text whenever i received an error. I have 2 textbox (for filtering) and 1 listbox(result of the data) in this userform.

    Thanks!

  2. #2
    Registered User
    Join Date
    01-19-2009
    Location
    UK
    MS-Off Ver
    2007
    Posts
    60

    Re: Compile error: Argument not optional

    It's because the FilterList procedure requires a third String variable. You're only passing two.

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

  3. #3
    Forum Contributor
    Join Date
    07-20-2009
    Location
    philippines
    MS-Off Ver
    Excel 2007
    Posts
    203

    Re: Compile error: Argument not optional

    Hi AKK9,
    Thanks for the reply and explaining it. Got it worked!!!

+ 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