bluepenink
Well-known Member
- Joined
- Dec 21, 2010
- Messages
- 585
Hello
Im new with Macro and I have this macro in place that filters when I enter a number in cell H4 on worksheet called "Report".
Basically, I list of 900+ accounts, so this macro can filter by only the accounts i would want. ie. If i enter 0987 in cell H4, the table below would filter the results to show data pertaining to 0987.
ISSUE:
On my new worksheet, called "OMX Store Summary" I would like the same macro to work in cell D6. How can I re-route this macro to lookoff worksheet "Report" and take me to that worksheet with the result?
Can someone pls help?! cheers
Im new with Macro and I have this macro in place that filters when I enter a number in cell H4 on worksheet called "Report".
Basically, I list of 900+ accounts, so this macro can filter by only the accounts i would want. ie. If i enter 0987 in cell H4, the table below would filter the results to show data pertaining to 0987.
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Application.ScreenUpdating = False
With ActiveSheet
.AutoFilterMode = False
.Range("myHeaders").AutoFilter
If Range("myStoreNumber").Value <> 0 Then .Range("myHeaders").AutoFilter Field:=6, Criteria1:=Range("myStoreNumber").Value
End With
Application.ScreenUpdating = True
End Sub
ISSUE:
On my new worksheet, called "OMX Store Summary" I would like the same macro to work in cell D6. How can I re-route this macro to lookoff worksheet "Report" and take me to that worksheet with the result?
Can someone pls help?! cheers