Hi, I have a workbook in which there is a database sheet called “DTL” and a query sheet called “QRY”. In the “QRY” sheet I’ve create a list containing all items mentioned in sheet “DTL” and I’ve added a button “ADD” from active-x control in developer tab. What I’m trying to do is when I select a item from the drop down list in sheet “QRY” and hit the button “ADD” a macro should run and fetch data from sheet “DTL” using the data in the drop down as lookup value and fill in the table in sheet “QRY”.
Please find attached the sample file to work with.
Bookmarks