Excel Workbook |
---|
|
---|
| A | B | C | D | E |
---|
1 | TITLE | STARRING | CO-STARRING | GENRE | RATING |
---|
2 | | | | Adventure | 15 |
---|
3 | Enter search criteria n the boxes above, either film title, movie starts or just click in the Genre or Ratings boxes for a drop down and search those by clicking Find Film to the right | | | | |
---|
4 | TITLE | STARRING | CO-STARRING | GENRE | RATING |
---|
5 | 28 Days | Sandra Bullock | Viggo Morgensten | Romance | 15 |
---|
6 | Billy Elliot | Julie Walters | Gary Lewis | comedy | 15 |
---|
7 | Bridget Jones | Renee Zellwegner | Hugh Grant | Romance | 15 |
---|
8 | Bridget Jones Diary | Renee Zellwegner | Hugh Grant | Romance | 15 |
---|
9 | Brokeback Mountain | Heath Ledger | Jake Gyllenhaal | Romance | 15 |
---|
10 | Bruce almighty | Jim carey | Morgan Freeman | comedy | 12 |
---|
11 | Dreamcatcher | Morgan Freeman | Donnie Whalberg | Horror | 15 |
---|
12 | Failure to Launch | Mathew McConaughey | Jessica Parker | comedy | 12 |
---|
13 | Fallen | Denzel Washington | John Goodman | Chiller | 15 |
---|
14 | Harry Potter and the Chambers of secrets | Daniel Radcliffe | Robbie Coltrane | Adventure | PG |
---|
15 | Harry Potter goblet of fire | Daniel Radcliffe | Robbie Coltrane | Adventure | 12 |
---|
16 | Harry Potter prisoner of Azkaban | Daniel Radcliffe | Robbie Coltrane | Adventure | PG |
---|
17 | High Crimes | Ashley Judd | Morgan Freeman | Thriller | 12 |
---|
18 | Hot Fuzz | Simon Pecc | Nick Frost | comedy | 15 |
---|
19 | Ice age 2 | cartoon characters | Animated | Cartoon | U |
---|
20 | Identity | John Cusack | Ray Liotta | Horror | 15 |
---|
21 | Indiana Jones Trilogy | Harrison Ford | Cate Blanchett | Adventure | PG |
---|
22 | Just Friends | Ryan Reynolds | Amy Smart | comedy | 12 |
---|
23 | King Kong | Naomi Watts | Jack Black | Adventure | 12 |
---|
24 | Lethal Weapon | Mel Gibson | Danny glover | Thriller | 18 |
---|
25 | Lethal Weapon 2 | Mel Gibson | Danny glover | Thriller | 18 |
---|
26 | Lethal weapon 3 | Mel Gibson | Danny glover | Thriller | 15 |
---|
27 | Lethal weapon 4 | Mel Gibson | Danny glover | Thriller | 15 |
---|
28 | Love Actually | Hugh Grant | Emma Thomson | comedy | 15 |
---|
29 | Madagascar | cartoon characters | Animated | Cartoon | U |
---|
30 | Meet the Fockers | Rebert de Nero | Ben Stiller | comedy | 12 |
---|
31 | Monsters Inc | cartoon characters | Animated | Cartoon | U |
---|
32 | Mummy collection | Jet Li | Brendan Fraser | Adventure | 15 |
---|
33 | Murder by Numbers | Sandra Bullock | Jeff Stott | Chiller | 15 |
---|
34 | O Brother where art thou | George Clooney | John Turturro | comedy | 15 |
---|
35 | Oceans Eleven | George Clooney | Matt Damon | comedy | 12 |
---|
36 | Oceans Thirteen | George Clooney | Brad Pitt | comedy | PG |
---|
37 | Oceans Twelve | George Clooney | Brad Pitt | comedy | 12 |
---|
38 | Over the Hedge | Dreamworks | Animated | Cartoon | U |
---|
39 | Phonebooth | Colin Farrell | Forrest Whittaker | Chiller | 15 |
---|
40 | Pirates of the Carribean | Johhny Depp | Orlando Bloom | comedy | 12 |
---|
41 | Robbie Williams | Robbie Williams | The Band | Music | U |
---|
42 | Shrek 2 | Shrek | Donkey | comedy | U |
---|
43 | Shrek 3D | Shrek | Donkey | comedy | U |
---|
44 | Shrek the Third | Shrek | Donkey | comedy | U |
---|
45 | Sleepers | Kevin Bacon | Robert de Niro | Thriller | 18 |
---|
46 | Starskey & Hutch | Ben Stiller | Owen Wilson | Adventure | 15 |
---|
47 | The Da Vinci Code | Tom Hanks | Ian Mckellen | Thriller | 12 |
---|
48 | The Devil Wears Prada | Meryl Streep | Anne Hathaway | Romance | 12 |
---|
49 | The life of Brian | Monty Python | Eric Idle | comedy | 15 |
---|
|
---|
first table like this and a second one on the same page, use the exact same cells and you'll just have to copy an past the VBA code
Excel Workbook |
---|
|
---|
| G | H | I | J | K |
---|
3 | | | | | |
---|
4 | TITLE | STARRING | CO-STARRING | GENRE | RATING |
---|
5 | Mummy collection | Jet Li | Brendan Fraser | Adventure | 15 |
---|
6 | Starskey & Hutch | Ben Stiller | Owen Wilson | Adventure | 15 |
---|
7 | | | | | |
---|
8 | | | | | |
---|
9 | | | | | |
---|
10 | | | | | |
---|
11 | | | | | |
---|
12 | | | | | |
---|
13 | | | | | |
---|
14 | | | | | |
---|
15 | | | | | |
---|
16 | | | | | |
---|
17 | | | | | |
---|
18 | | | | | |
---|
19 | | | | | |
---|
20 | | | | | |
---|
21 | | | | | |
---|
22 | | | | | |
---|
23 | | | | | |
---|
24 | | | | | |
---|
25 | | | | | |
---|
26 | | | | | |
---|
|
---|
and copy this code into a macro module as is
Sub FilmFinder()
'
' FilmFinder Macro
'
'
Columns("A:E").Select
Columns("A:E").EntireColumn.AutoFit
Columns("G:K").Select
Columns("G:K").EntireColumn.AutoFit
Range("M16").Select
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Range("A4:E2001").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range _
("A1:E2"), CopyToRange:=Range("G4:K4"), Unique:=False
ActiveWindow.SmallScroll Down:=-18
Columns("G:K").Select
Columns("G:K").EntireColumn.AutoFit
Range("F3").Select
End Sub
which should be pasted into myworkbook
and the following into the Modules
Sub FilmExtract()
'
' FilmExtract Macro
'
'
Range("A4:E4177").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range _
("Sheet8!Criteria"), CopyToRange:=Range("G4:K4"), Unique:=False
Range("E2").Select
Selection.ClearContents
Range("D2").Select
ActiveCell.FormulaR1C1 = ""
Range("E2").Clear
Range("F2").Select
End Sub
Sub FilmFinder()
'
' FilmFinder Macro
'
'
Columns("A:E").Select
Columns("A:E").EntireColumn.AutoFit
Columns("G:K").Select
Columns("G:K").EntireColumn.AutoFit
Range("M16").Select
ActiveWindow.ScrollColumn = 2
ActiveWindow.ScrollColumn = 1
Range("A4:E2001").AdvancedFilter Action:=xlFilterCopy, CriteriaRange:=Range _
("A1:E2"), CopyToRange:=Range("G4:K4"), Unique:=False
ActiveWindow.SmallScroll Down:=-18
Columns("G:K").Select
Columns("G:K").EntireColumn.AutoFit
Range("F3").Select
End Sub