activate, window activate?

  • Follow


Hi, I want code to fire when I deactive excel and select another program and 
then run again when I active excel again...

Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
Range("v3").Font.ThemeColor = xlAutomatic
End Sub

Tried several, what am I missing?
0
Reply Utf 2/18/2010 5:38:02 PM

Try this.  Hope this helps!  If so, let me know, click "YES" below.

Private Sub Workbook_WindowDeactivate(ByVal Wn As Excel.Window)
    Range("V3").Font.ThemeColor = xlAutomatic
End Sub
-- 
Cheers,
Ryan


"John" wrote:

> Hi, I want code to fire when I deactive excel and select another program and 
> then run again when I active excel again...
> 
> Private Sub Workbook_SheetDeactivate(ByVal Sh As Object)
> Range("v3").Font.ThemeColor = xlAutomatic
> End Sub
> 
> Tried several, what am I missing?
0
Reply Utf 2/18/2010 6:10:02 PM


1 Replies
269 Views

(page loaded in 0.099 seconds)

Similiar Articles:
















7/24/2012 12:41:38 AM


Reply: