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??
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??
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
Thanks a million will give it a go
Can you provide me with a sample, I am new at working with VBA
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.
Dont they help? You only gave them less than 4 minutes
Here is the workbook
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
This should give you a start, put it in the Main worksheet's module.
Please Login or Register to view this content.
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?
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"
This finds the row the selected name is on in the sheet 'Bemarkers, which is also the first row of the data you want.
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.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks