Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Application.EnableEvents = true, but no event fires

I have an ActiveX DLL containing macros and forms for my excel
spreadsheet.
In one form, when you click OK, it writes the value of a text box to a
cell, which should generate a worksheet_change event in the workbook.

In the form:

Private Sub OK_Click()
ThisApp.EnableEvents = True
ThisWB.ActiveSheet.Range("B5").value = NameTextBox.Text
Unload Me
End Sub
(ThisApp is a variable in the DLL set to the active Excel.Application)
(ThisWB is a variable in the DLL set to the active Excel Workbook)

When you click OK, it changes cell B5, but does not generate a
Worksheet Change Event in the workbook at all. Why not??? Any
ideas???

- Wes
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
Application.EnableEvents DCPan Excel Worksheet Functions 3 October 18th 08 05:46 AM
application.EnableEvents nc Excel Discussion (Misc queries) 1 September 28th 05 04:00 PM
worksheet_change event fires multiple times timconstan[_3_] Excel Programming 0 October 6th 04 03:59 PM
application.enableEvents jeffP Excel Programming 1 August 1st 04 03:12 PM
Application.EnableEvents Terry Excel Programming 2 April 2nd 04 08:25 PM


All times are GMT +1. The time now is 08:30 AM.

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

About Us

"It's about Microsoft Excel"