Albatross
Apr 27th, 2006, 10:30 AM
Small problem...
On a worksheet, I have a collection of data sorted by rows. I built a userform with a combobox that looks up to the range of data.
Waht I'm trying to get it to do, is with a commandbutton, the use the selection from the combobox, to filter the range of data, copy it, and paste it into the same sheet.
The range of data I placed to the far right starting at cell ab1 and want the paste to start at cell a1. (Reason for putting the source data so far away it that it doesn't need to be seen by everyone.) My range of data is ab1:ak700
So what im looking for is code that will capture my selection from combobox1, and when commandbutton1 on the same userform is pressed, filter the range of ab1:ak700 based on the selection made in combobox1, copy the result, and paste values to a1.
I've got everything built but for some reason, I can't seem to get it to work. (Got ticked and deleted the code and have been rebuilding from scratch with the same criteria)
Any help, code, ideas, notions, or beverages of the calming kind would be greatly helpful!
On a worksheet, I have a collection of data sorted by rows. I built a userform with a combobox that looks up to the range of data.
Waht I'm trying to get it to do, is with a commandbutton, the use the selection from the combobox, to filter the range of data, copy it, and paste it into the same sheet.
The range of data I placed to the far right starting at cell ab1 and want the paste to start at cell a1. (Reason for putting the source data so far away it that it doesn't need to be seen by everyone.) My range of data is ab1:ak700
So what im looking for is code that will capture my selection from combobox1, and when commandbutton1 on the same userform is pressed, filter the range of ab1:ak700 based on the selection made in combobox1, copy the result, and paste values to a1.
I've got everything built but for some reason, I can't seem to get it to work. (Got ticked and deleted the code and have been rebuilding from scratch with the same criteria)
Any help, code, ideas, notions, or beverages of the calming kind would be greatly helpful!