I do not know if it is possible to implement this problem in VBA or it must be done with VB. Net using Visual Studio.
Problem:
Excel has its search function and it is a pain if there many value available or you must find a value that far away from column A.

I would like to have something like this

In which I can specify what columns I want to display by their header name. Rearrange the column in the way I would like to, and ability to copy and paste. Like datagrid in Visual basic?
Is it possible?
I have given below both the methods – VBA and VB.net (take your pick) 🙂
USING VB.NET
Place a DataGridView on your VB.net Form and also place a Button. Place this code in the Button
And you are done 🙂
SNAPSHOT
I am using limited Data.
You can also change your string
"select * from [Sheet1$] Where F1 = 'Test1'"to"select F1 as Name,F2 as PN, F3 as [Inventory Loc] from [Sheet1$] Where F1 = 'Test1'"to display the headers as belowEDIT
In case you are wondering how to do it in VBA
USING VBA
Place a Listbox and a Command Button on a Form and then use this code.
SNAPSHOT
MORE FOLLOWUP
Yes it is possible to copy the single selected or multiple selected items from the listbox to cliboard. To make the listobx multiselect, in the design mode, set the property of the listbox to
fmMultiSelectMulti1. Next Add a command button and paste this code.This code is again based on the data I use above so amend it as applicable. When you press the
Copybutton, the data is copied to the clipboard and then you can simply useCTL Vto paste the data where ever you want; for example in Notepad.