PC Review


Reply
Thread Tools Rate Thread

activate, window activate?

 
 
John
Guest
Posts: n/a
 
      18th Feb 2010
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?
 
Reply With Quote
 
 
 
 
Ryan H
Guest
Posts: n/a
 
      18th Feb 2010
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?

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Reliably activate PowerPoint, do something, Activate Excel Barb Reinhardt Microsoft Excel Programming 1 4th Dec 2008 09:42 PM
Can't Activate - Clicking Activate Windows Does Nothing :( war59312 Windows Vista General Discussion 1 6th Mar 2007 07:31 AM
Windows().Activate vs Workbooks().Activate =?Utf-8?B?R2FyeScncyBTdHVkZW50?= Microsoft Excel Programming 4 6th Nov 2006 02:01 PM
What's this? "Press spacebar to activate or enter to activate.... =?Utf-8?B?Rm9yU3VyZQ==?= Microsoft Outlook Discussion 3 13th Apr 2006 09:12 PM
Workbook.Activate / Window.Activate problem Tim Microsoft Excel Programming 3 3rd Feb 2006 11:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 PM.