Hi Tom,
Thanks for getting back to me so quickly.
(1) Post my code you are referring to.
Sub Test2()
Dim myWord$
myWord = InputBox("ROCC Question Search Function", "Enter Key Word")
If myWord = "" Then Exit Sub
Application.ScreenUpdating = False
Dim xRow&, NextRow&, LastRow&
NextRow = 3
LastRow = Cells.Find(What:="*", After:=Range("A1"), SearchOrder:=xlByRows, SearchDirection:=xlPrevious).Row
For xRow = 1 To LastRow
If WorksheetFunction.CountIf(Rows(xRow), "*" & myWord & "*") > 0 Then
Rows(xRow).Copy Sheets("Search Results").Rows(NextRow)
NextRow = NextRow + 1
End If
Next xRow
Application.ScreenUpdating = True
MsgBox "Search is Complete, " & NextRow - 3 & " rows containing" & vbCrLf & _
"''" & myWord & "''" & " were copied to Search Results.", 64, "Done"
End Sub
(2) Say if there is one column of interest (if so, which column) where the word exists, or if the word might exist anywhere in the original (presumably) multi-column list.
Yes, column B (or 2) is the one column of interest that will contain the search parameters
(3) Say the column range of the original list; for example, is it A:K? F:R? D:H? Where does this original "copy from" list reside on the source worksheet?
The column range in the original list is A:O on the "Data" sheet (Sheet1)
(4) Say the column(s) in the destination worksheet that SHOULD have data copied to it along that row.
I would like only columns B, C, F, G, H, I, K, M and N to be displayed in the destination worksheet.
(5) Say the column(s) in the destination worksheet that should NOT have data copied to it along that row. Superfluous perhaps, given item (4), but it will help confirm what should go where, and what should not. Columns A, D, E, J, L and O should not be copied to the destination worksheet.
Thank you so much for this - I really do appreciate your expertise and help.
There is one other thing... I may be pushing it now...
Is there a way to have the input box (and therefore button) on a separate sheet so that the users cannot see the actual source sheet? I am using this document as a test for a possible database which will be used by a group of people. Only one person will enter information into the source sheet but everyone will be able to search it and see the results ... I was hoping to design a sheet that has a search input box (and therefore button) that was separate to the data and search results sheets. At present I have placed the button at the top of the data sheet.
Any help you can give me is very much appreciated!