+ Reply to Thread
Results 1 to 5 of 5

Named Argument not found

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Named Argument not found

    When I run this code, I get "Named Argument Not Found" with "Type" highlighted on the debugging screen. What's wrong? With Number DIM as Integer will this code prevent people from closing the input box without entering anything? Thanks
    Please Login or Register  to view this content.
    Last edited by ChemistB; 05-06-2011 at 03:48 PM.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  2. #2
    Forum Expert Colin Legg's Avatar
    Join Date
    03-30-2008
    Location
    UK
    MS-Off Ver
    365
    Posts
    1,252

    Re: Named Argument not found

    There are two kinds of input boxes immediately available in the Excel VBIDE, so you have to be a little careful.

    VBA.InputBox
    Application.InputBox

    The VBA Inputbox does not have a Type parameter - and that is the InputBox you are calling - so you get an error. You want the Application.InputBox.
    Please Login or Register  to view this content.
    Hope that helps,

    Colin

    RAD Excel Blog

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Named Argument not found

    Well, that helps. LOL Thanks Colin.

  4. #4
    Forum Expert snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,649

    Re: Named Argument not found

    But it's rather odd to use an inputbox if you also use userforms.

    You can use 2 frames in a userform. At the start the second one is hidden.
    In the first one the user can enter the number of teams (preferably using a spinbutton (min1 max 6))
    After exiting the spinbutten the second frame can be shown with as many textboxes as indicated by the spinbutton.



  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Named Argument not found

    Thanks snb. I will play with that until I am comfortable with it.

+ 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