Hi all,
Been looking around for a solution to my problem with no luck.
I'm fairly new to VBA but I think... I know the basics.
I am creating a Master spreadsheet for football results from the last couple of years.
I need to create a macro for a button to search through multiple sheets and copying rows that match my search results into certain cells
I have seen a few solutions for this around the web, however my problem is a bit more complex.
First of all I need it to search for rows that contains both teams and both home and away games.
Second of all I need to paste the row into a certain cells.
I hope I am making sense here.
Example.
Sheet1 (Data) is where I want to paste the rows
Sheet2 (Premier League) Contains all the matches and results from the past few years
Sheet3 (Prem Tables) Contains The league tables as well as information about the referees
I have 10 other sheets for the 5 other Leagues that contain the results and league tables.
Cell B3 and C3 Both contain an identical drop down list of Premier League teams.
I want the macro to match the 2 teams in these cells with any results in the Premier League sheet (Home Teams in Column C) (Away teams in Column E) and Copy The rows Into Cell A25 on the Data sheet
I then need it to match the Team in Cell B3 of the Data sheet with any results in the Prem Tables Sheet and again copy rows and place in Cells A11-A16
Then I need it to do the same for the team in Cell C3.
Finally I need it to match the referee that is in D3 with the referees in Prem Tables Sheet and again... copy row and past into Cells H3-H8
I will need it to do the same for all of the 5 other leagues
Sorry for the long description. Hope you understand
I have attached screenshots For you to look at
Data Sheet.jpgPremier League.jpgPrem Tables Teams.jpgPrem Tables Referees.jpg
Bookmarks