+ Reply to Thread
Results 1 to 4 of 4

Passing Info from a Form combobox

  1. #1
    Registered User
    Join Date
    03-16-2004
    Posts
    65

    Passing Info from a Form combobox

    What am I doing wrong here? I have a custom form with a combobox on it, and I'm trying to set a variable in my workbook to read that info, but my value always comes up blank...here is my code...

    Please Login or Register  to view this content.
    Any help would be much appreciated.
    Last edited by TyeJae; 10-28-2008 at 09:20 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,526

    Populate combobox in a userform

    You do not show where you have this code, or supply a sample where we can see the user form,
    Adding items to a combo box to a user form straight from excels VBA Help file.
    Please Login or Register  to view this content.
    This code goes into the userform module.
    This will change A1 to what ever you have selected in the combobox, use value or text as required
    Please Login or Register  to view this content.

  3. #3
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    re: Passing Info from a Form combobox

    Note that I have made a name called Var1 (=Sheet1!$C$7)
    Please Login or Register  to view this content.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  4. #4
    Registered User
    Join Date
    03-16-2004
    Posts
    65
    Thanks guys, that 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