Run macro when worksheet is active code example Example: SRun macro when worklsheet is activated Private Sub Worksheet_Activate() End Sub