+ Reply to Thread
Results 1 to 3 of 3

VBA FromList Choose Problem

  1. #1
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Talking VBA FromList Choose Problem

    For some odd reason I can get this code to work in the attached workbook, but I cannot get it to work in any other ones without the error "Compile error: Argument not optional". I don't have option explicit on.

    Sub list_ojb()

    Dim uiotherchoices
    uiotherchoices = Choose.FromList(Array("Game", "Communications", "Medical"), "Choose one")
    End Sub

    Why do I get that error and how do I fix it? Thanks for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: VBA FromList Choose Problem

    Not sure I understand what you are trying to achieve, but if you want to place the chosen value on in Sheet1 B2 in the activeworkbook, then change.

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

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    01-17-2013
    Location
    Austin, TX
    MS-Off Ver
    Excel 2007
    Posts
    84

    Re: VBA FromList Choose Problem

    I figured it out...I'm going to have to build an user form.

+ 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] Help with the Choose Function to choose a col
    By dlow in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-27-2014, 03:11 PM
  2. Two validations: first choose the sheet (1-5), then choose the option
    By bee88 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-17-2014, 08:12 AM
  3. [SOLVED] Formula help to choose lowest cost from multiple vendors and then choose vendor
    By roland_arv in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-27-2013, 07:48 PM
  4. VLOOKUP ? IFERROR ? CHOOSE ? Problem
    By yesitskez in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-29-2013, 11:09 AM
  5. Problem with the Choose function
    By thetexan in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-30-2013, 03:13 PM

Tags for this Thread

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