Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creation of VBA Code 2

Status
Not open for further replies.

yabby24

Chemical
Nov 2, 2015
10
I want to create a code to have the user input a number, have the code search through a column of cells with these numbers, and report back the rows of data associated with the column if it matches the input number. Ideally these would be reported on a different spreadsheet. I am pretty clueless with Excel VBA and just started. Any help with this code would be appreciated, as well as any references as I would like to learn.
 
Replies continue below

Recommended for you

Bhi,

I'd suggest using a query to return the rows that match your criteria.

Data > Get external data > from other sources > from Microsoft query... And drill down to your workbook. If your table is the only Dara on the sheet and has headings in row 1, as a proper table ought, your sheet will act as a database table. You can make your query to be a "parameter query" allowing you to enter a criteria value in a cell that will modify the query results.

No VBA required!

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
This works perfectly, and somehow I never knew about it. Thank you!
 
That's what's great about Eng-Tips!

Skip,
[sub]
[glasses]Just traded in my OLD subtlety...
for a NUance![tongue][/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor