+ Reply to Thread
Results 1 to 3 of 3

Need Help with Very Simple Combo Box

  1. #1
    Registered User
    Join Date
    11-03-2016
    Location
    England
    MS-Off Ver
    2013
    Posts
    1

    Need Help with Very Simple Combo Box

    Hey guys im just working on my first project in VBA and can't figure out how to get a very simple combo box to work.

    Here's what I have so far \1

    So Sheet 1 contains some data, and Sheet 2 is empty with just a combo box that ive created.

    Ive named column B "Names" but if i set the property of the combobox to select all data from the range "Names" it includes the cell B1 (Employee Name)

    So instead i tried to code the range from B2 to the last filled cell in B2 but im getting a Type mismatch error.

    Any help will be much appreciated.
    Attached Images Attached Images

  2. #2
    Forum Expert gmr4evr1's Avatar
    Join Date
    11-24-2014
    Location
    Texas
    MS-Off Ver
    Office 2010 and 2007
    Posts
    3,448

    Re: Need Help with Very Simple Combo Box

    A couple of things I see right off the bat...
    Put quotes around Sheet1
    Change Values to Value
    1N73LL1G3NC3 15 7H3 4B1L17Y 70 4D4P7 70 CH4NG3 - 573PH3N H4WK1NG
    You don't have to add Rep if I have helped you out (but it would be nice), but please mark the thread as SOLVED if your issue is resolved.

    Tom

  3. #3
    Forum Guru bakerman2's Avatar
    Join Date
    10-03-2012
    Location
    Antwerp, Belgium
    MS-Off Ver
    MO Prof Plus 2016
    Posts
    6,908

    Re: Need Help with Very Simple Combo Box

    If I understand correctly what you are trying to achieve is that when you access Sheet2 the combobox is filled with data on Sheet1 Column B?
    If so put following code in the Sheetmodule of Sheet2.

    Please Login or Register  to view this content.
    Avoid using Select, Selection and Activate in your code. Use With ... End With instead.
    You can show your appreciation for those that have helped you by clicking the * at the bottom left of any of their posts.

+ 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. Simple Way to update multiple pivot tables from one combo box?
    By andyboles in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 06-21-2016, 09:42 AM
  2. Issues with drop down combo box, maybe simple, please help
    By electrix in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-16-2016, 11:14 AM
  3. [SOLVED] VB newbie- Problems with simple macro to clear combo box value
    By sdelphy in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2014, 03:42 PM
  4. A simple Combo Box that would select month date and year,
    By jamesjessie117 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-20-2012, 12:22 AM
  5. Simple way to use combo box from Control Toolbox?
    By ChristiaanV in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-10-2008, 02:15 PM
  6. Simple question about a Combo Box
    By koda86 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2006, 04:50 AM
  7. [SOLVED] Simple Combo box help
    By Roscoe in forum Excel General
    Replies: 3
    Last Post: 02-02-2005, 02:06 PM

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