D
David
Is it possible to have a piece of VBA code that enters a
value in a cell based on the result of filtering a column
using a auto filter, attached to a button.
So for example, a table with a column that filters A, B
and C.
so whenever 'A' is filtered (Criteria1:="A"), then enter
the value of sheet1!A1 into sheet2!A1 (for example).
Filtering A can be attached to a button to execute the
code. (as opposed to selecting A in the auto filter, this
can be executed with the following code.
Sheets("sheet1").Select
ActiveSheet.AutoFilterMode = False
Range("A7").AutoFilter Field:=7, Criteria1:="A"
I want to add to this code a condition that when it is
executed then enter the value of sheet1!A1 into sheet2!A2.
Any ideas? This will make my spreadsheet alot more
functional.
Thanks.
Regards
value in a cell based on the result of filtering a column
using a auto filter, attached to a button.
So for example, a table with a column that filters A, B
and C.
so whenever 'A' is filtered (Criteria1:="A"), then enter
the value of sheet1!A1 into sheet2!A1 (for example).
Filtering A can be attached to a button to execute the
code. (as opposed to selecting A in the auto filter, this
can be executed with the following code.
Sheets("sheet1").Select
ActiveSheet.AutoFilterMode = False
Range("A7").AutoFilter Field:=7, Criteria1:="A"
I want to add to this code a condition that when it is
executed then enter the value of sheet1!A1 into sheet2!A2.
Any ideas? This will make my spreadsheet alot more
functional.
Thanks.
Regards