+ Reply to Thread
Results 1 to 7 of 7

ComboBox Selection to Module

  1. #1
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    ComboBox Selection to Module

    how do I return the value from the userform (Client_Value) into the module?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: ComboBox Selection to Module

    Your question is not very clear.
    What module are you talking about? Do you have other code where the userform is shown?
    Cheers
    Andy
    www.andypope.info

  3. #3
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: ComboBox Selection to Module

    Yes, Module 1 has

    Please Login or Register  to view this content.
    I need the combobox to return the selection as a Variant or String in a Macro contained Module1 so that I can use it in a string, vlookup, and enter the data into a cell. I want to do this without putting the value into the cell and having the Macro contained in Module1 reading it from the cell, if possible

  4. #4
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: ComboBox Selection to Module

    userform code
    Please Login or Register  to view this content.
    macro code
    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: ComboBox Selection to Module

    I am getting a Run-Time Error '70': Permission Denied

  6. #6
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: ComboBox Selection to Module

    Which line exactly?
    Is your combo box linked to a range? Delete the combo populate line if so.

  7. #7
    Forum Contributor
    Join Date
    03-22-2012
    Location
    OR, USA
    MS-Off Ver
    Excel 14/2010
    Posts
    273

    Re: ComboBox Selection to Module

    Please Login or Register  to view this content.
    Yes it was linked to a range.

    This worked. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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