Patrick,
Put this sub in the ThisWorkbook module. Sh will be the worksheet that was just activated.
Private Sub Workbook_SheetActivate(ByVal Sh As Object)
MsgBox Sh.Name
' take out the line above and put in your code
End Sub
--
Earl Kiosterud
www.smokeylake.com
Note: Top-posting has been the norm here.
Some folks prefer bottom-posting.
But if you bottom-post to a reply that's
already top-posted, the thread gets messy.
When in Rome...
-----------------------------------------------------------------------
"Patrick" <(E-Mail Removed)> wrote in message
news

F680402-A500-4001-8954-(E-Mail Removed)...
> how do i automatically run a macro when i move from one worksheet to another.
>
> ie select another worksheet, then automatically run a specific macro
>
>
> pat