VB Code:
checkone=7 '7 because the range starts at k7, u can select your own number
checktwo=1 '1 because the range starts at a1 in sheet2, u can select your own number
dim flagone as boolean
with worksheets("sheet1").range("k7:k13")
do
yyy="k"+format(checkone)
' "k" because that is the column where the data is stored
' If checkone =7 then the value of yyy becomes k7
zzz="a"+format(checktwo)
' "a" because that is the column and checktwo is the cell no in that column in sheet2
'where u need to paste the data. if checktwo =1 then the value of zzz becomes a1
if combobox1.value=range(yyy).value then
worksheets("sheet2").range(zzz).value=combobox1.value
checkone=checkone+1
checktwo=checktwo+1
else
checkone=checkone+1
endif
if checkone=13 then '13 because the range ends at k12, u can select your own number
flagone=false
end if
loop until flagone=false
endwith