+ Reply to Thread
Results 1 to 12 of 12

Combo Box problem

  1. #1
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Combo Box problem

    Hi,

    I am using an Active X Combo box.

    I have a list of six peoples' names that are in the combo box. If I select the different names I want the data connected to the specific names to be copied from the other sheet to my main sheet, help please??

  2. #2
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Combo Box problem

    http://www.excel-easy.com/vba/exampl...ned-range.html

    http://www.ozgrid.com/forum/showthread.php?t=11530

    http://stackoverflow.com/questions/2...specific-range

    These articles should give you what you need, you need to loop through the cells in the column, then check for name, then copy the row
    Hope this helps

    Sometimes its best to start at the beginning and learn VBA & Excel.

    Please dont ask me to do your work for you, I learnt from Reading books, Recording, F1 and Google and like having all of this knowledge in my head for the next time i wish to do it, or wish to tweak it.
    Available for remote consultancy work PM me

  3. #3
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Combo Box problem

    Thanks a million will give it a go

  4. #4
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Combo Box problem

    Can you provide me with a sample, I am new at working with VBA

  5. #5
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Combo Box problem

    Can you upload an example workbook?

    Click on GO ADVANCED and use the paperclip icon to open the upload window.
    If posting code please use code tags, see here.

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Combo Box problem

    Dont they help? You only gave them less than 4 minutes

  7. #7
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Combo Box problem

    Here is the workbook
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Combo Box problem

    I want the Data on sheet "Bemarkers" Colums B-D to be copied to the main sheet if the different names are selected in the combo box

  9. #9
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Combo Box problem

    This should give you a start, put it in the Main worksheet's module.
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    09-03-2014
    Location
    South Africa
    MS-Off Ver
    MS Office 2010
    Posts
    40

    Re: Combo Box problem

    Norrie Thank you very much, only problem now is I don't know how to do it myself. Is there a way you can explain to my why you did what you did?

  11. #11
    Valued Forum Contributor
    Join Date
    09-21-2011
    Location
    Birmingham UK
    MS-Off Ver
    Excel 2003/7/10
    Posts
    2,188

    Re: Combo Box problem

    read the articles i sent and do some research After norie's explained, that is all you'll know how to do, start reading so you can do more. Think "what if my boss asks me to show the team how its done"

  12. #12
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Combo Box problem

    This finds the row the selected name is on in the sheet 'Bemarkers, which is also the first row of the data you want.
    Please Login or Register  to view this content.
    That value is used here for the start of the range we want to copy, which is in column B on the same row the name was found in.
    Please Login or Register  to view this content.
    In the above this part finds the end of the range we want to copy.
    Please Login or Register  to view this content.
    It does this by finding the row the next name is on, .Cells(Res, "A").End(xlDown).Row, and subtracting 1.

+ 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] Excel 2010 VBA – Combo Box Options– Clear cell/box in 2nd Combo when 1st Combo selected
    By theshybutterfly in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2013, 07:25 PM
  2. Combo Box Problem
    By rbyrd023 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2011, 03:20 PM
  3. Problem with combo box
    By dleo in forum Excel General
    Replies: 2
    Last Post: 04-01-2009, 09:55 PM
  4. Combo box problem
    By run_PAFC in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2005, 12:05 AM
  5. Combo problem again
    By filo666 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-18-2005, 03: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