Help!! I have a rather complex (to me) scenario which I just cannot work out the best way to deal with this... any suggestions or samples would be really appreciated!!
I have a workbook with two worksheets, Sheet1 and Sheet 2. Based on the data entered in the 2nd column on Sheet1, I'd like a macro which hides rows for Events which do not meet the criteria entered on Sheet1.
So in the example below, on Sheet2, I only want to see rows where the Country=Scotland, AND the Location=Glasgow, AND the Start Date is greater than (or equal) the Start Date on Sheet1.
Sample of Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Scotland[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[TD]Glasgow[/TD]
[/TR]
[TR]
[TD]Start Date (dd/mm/yyyy)[/TD]
[TD]30/04/2013[/TD]
[/TR]
</tbody>[/TABLE]
And on Sheet2, a list of events.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Event[/TD]
[TD]Country[/TD]
[TD]Location[/TD]
[TD]Start Date[/TD]
[/TR]
[TR]
[TD]Event1[/TD]
[TD]Scotland[/TD]
[TD]Glasgow[/TD]
[TD]01/05/2013[/TD]
[/TR]
[TR]
[TD]Event2[/TD]
[TD]Scotland[/TD]
[TD]Glasgow[/TD]
[TD]01/03/2013[/TD]
[/TR]
[TR]
[TD]Event3[/TD]
[TD]Scotland[/TD]
[TD]Edinburgh[/TD]
[TD]15/05/2013[/TD]
[/TR]
[TR]
[TD]Event4[/TD]
[TD]England[/TD]
[TD]London[/TD]
[TD]20/05/2013[/TD]
[/TR]
</tbody>[/TABLE]
So in this scenario, only the FIRST row meets the 3 criteria (Scotland, Glasgow, date after 30th April), thus all the other rows should be hidden.
I can do all these individually - just having problems doing them all together at once!!
Thanks in advance for pointing me in the right direction!!
I have a workbook with two worksheets, Sheet1 and Sheet 2. Based on the data entered in the 2nd column on Sheet1, I'd like a macro which hides rows for Events which do not meet the criteria entered on Sheet1.
So in the example below, on Sheet2, I only want to see rows where the Country=Scotland, AND the Location=Glasgow, AND the Start Date is greater than (or equal) the Start Date on Sheet1.
Sample of Sheet1
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Country[/TD]
[TD]Scotland[/TD]
[/TR]
[TR]
[TD]Location[/TD]
[TD]Glasgow[/TD]
[/TR]
[TR]
[TD]Start Date (dd/mm/yyyy)[/TD]
[TD]30/04/2013[/TD]
[/TR]
</tbody>[/TABLE]
And on Sheet2, a list of events.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Event[/TD]
[TD]Country[/TD]
[TD]Location[/TD]
[TD]Start Date[/TD]
[/TR]
[TR]
[TD]Event1[/TD]
[TD]Scotland[/TD]
[TD]Glasgow[/TD]
[TD]01/05/2013[/TD]
[/TR]
[TR]
[TD]Event2[/TD]
[TD]Scotland[/TD]
[TD]Glasgow[/TD]
[TD]01/03/2013[/TD]
[/TR]
[TR]
[TD]Event3[/TD]
[TD]Scotland[/TD]
[TD]Edinburgh[/TD]
[TD]15/05/2013[/TD]
[/TR]
[TR]
[TD]Event4[/TD]
[TD]England[/TD]
[TD]London[/TD]
[TD]20/05/2013[/TD]
[/TR]
</tbody>[/TABLE]
So in this scenario, only the FIRST row meets the 3 criteria (Scotland, Glasgow, date after 30th April), thus all the other rows should be hidden.
I can do all these individually - just having problems doing them all together at once!!
Thanks in advance for pointing me in the right direction!!
