Link to home
Start Free TrialLog in
Avatar of lmg250
lmg250

asked on

Automating VBA in excel 2002

I have a macro in excel 2002 which I has to be run every time a value in certain portion of a worksheet changes.  Rather than having to select this to run every time a value in the work sheet changes, I would rather that the macro would run automatically every time a value in this selected area changes.

Thanks for all your help

Liam McGrath
ASKER CERTIFIED SOLUTION
Avatar of vikram_c90
vikram_c90

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mango2
Mango2

yep vikram is right, follow his instruction

Private Sub Workbook_SheetSelectionChange(ByVal Sh _
As Object, ByVal Target As Excel.Range)
   
    MsgBox "change"
    'put your code to run your macro
End Sub
Avatar of lmg250

ASKER

Thanks for the info Vikram,

Liam
Really glad to have helped