gino59
Active Member
- Joined
- Jul 26, 2010
- Messages
- 496
Hi all,
I'm trying to figure out how to specify an Excel 2010 table filter by reading the value in a cell located on a different worksheet.
I have the table on sheet "mData1". I'd like to filter that table based on the cell value on sheet "MBR" in cell R4.
Here's a snippet of the code...
How can I specify the criteria to read the value in cell R4 on the MBR worksheet and then filter the table on the mData sheet?
Many many thanks in advance!!
Cheers,
Gino
I'm trying to figure out how to specify an Excel 2010 table filter by reading the value in a cell located on a different worksheet.
I have the table on sheet "mData1". I'd like to filter that table based on the cell value on sheet "MBR" in cell R4.
Here's a snippet of the code...
Code:
Sheets("mdata1").Activate
ActiveSheet.ListObjects("mData").Range.AutoFilter Field:=3, Criteria1:= _
Sheets("MBR") & Range("R4").Text
How can I specify the criteria to read the value in cell R4 on the MBR worksheet and then filter the table on the mData sheet?
Many many thanks in advance!!
Cheers,
Gino