Windy Skies
New Member
- Joined
- Dec 27, 2012
- Messages
- 47
Based on: How to Automatically Autofilter Based Upon 'Contains Cell Value'
I have no clue what I am doing, so I am actually extremely surprised that it seems to work.
This is supposed to look for a value in cell E3, and filter the range $A$1:$A$46 to only display the rows that contain the value in that cell.
My previous post: http://www.mrexcel.com/forum/excel-...lter-based-contains-value-reference-cell.html
I have a LONG list of words I would like to associate with the phrases in the book they are used in. I could run this macro a thousand times and copy the result. It would be easier for me, for now and for future projects, if Excel could automatically generate a table like so:
I have no clue what I am doing, so I am actually extremely surprised that it seems to work.
This is supposed to look for a value in cell E3, and filter the range $A$1:$A$46 to only display the rows that contain the value in that cell.
Code:
Sub Macro2()
'
' Macro2 Macro
Dim sCriteria As String
Range("E3").Select
Selection.Copy
sCriteria = "*" & Range("E3").Value & "*"
'
'
ActiveSheet.Range("$A$1:$A$46").AutoFilter Field:=1, Criteria1:=sCriteria, _
Operator:=xlAnd
End Sub
My previous post: http://www.mrexcel.com/forum/excel-...lter-based-contains-value-reference-cell.html
I have a LONG list of words I would like to associate with the phrases in the book they are used in. I could run this macro a thousand times and copy the result. It would be easier for me, for now and for future projects, if Excel could automatically generate a table like so:
Ideally, but I have no idea how to do this, Excel could do this automatically: based on a list of a 1000 words, generate a multiple-column table (word, associated phrase #1, associated phrase #2, ...., associated phrase #6 )