Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can't get Worksheet_Activate() to work in one spreadsheet.

Private Sub Worksheet_Activate()
MsgBox "Help"
End Sub

This MsgBox or any code will not execute. This code is placed in the Sheet.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,872
Default Can't get Worksheet_Activate() to work in one spreadsheet.

Hi Clay,

Am Fri, 16 Aug 2013 09:59:31 -0700 (PDT) schrieb clay:

This code is placed in the Sheet.


right click on sheet tab = Show code and paste your code into the code
window of this sheet


Regards
Claus B.
--
Win XP PRof SP2 / Vista Ultimate SP2
Office 2003 SP2 /2007 Ultimate SP2
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default Can't get Worksheet_Activate() to work in one spreadsheet.

hi,

execute the following code to reactivate events

Sub Macro1()
Application.EnableEvents = True
End Sub

isabelle

Le 2013-08-16 12:59, clay a écrit :
Private Sub Worksheet_Activate()
MsgBox "Help"
End Sub

This MsgBox or any code will not execute. This code is placed in the Sheet.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can't get Worksheet_Activate() to work in one spreadsheet.

On Friday, August 16, 2013 12:29:15 PM UTC-5, isabelle wrote:
hi,



execute the following code to reactivate events



Sub Macro1()

Application.EnableEvents = True

End Sub



isabelle



Le 2013-08-16 12:59, clay a écrit :

Private Sub Worksheet_Activate()


MsgBox "Help"


End Sub




This MsgBox or any code will not execute. This code is placed in the Sheet.




Isabelle,

Thank you. That fixes the problem.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet_Activate - conditional use Neil[_5_] Excel Programming 5 July 4th 07 09:53 PM
Worksheet_Activate greg Excel Programming 2 September 26th 06 01:24 PM
Private Sub Worksheet_Activate() Teodor Bobochikov Excel Programming 1 September 28th 04 11:03 AM
Worksheet_Activate Pozzo Excel Programming 5 June 7th 04 07:39 PM
Worksheet_Activate Jim Carlock[_2_] Excel Programming 2 September 25th 03 12:47 AM


All times are GMT +1. The time now is 01:24 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"