Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Problem with worksheet_deactivate code

I've got a userform that opens when a sheet is active and is supposed to
close when the same sheet is deactivated. This has worked fine in the past
and I was wonder what if anything can be done.

what happens now?
It opens and closes normally until a button on the form is clicked and the
action is performed. After the action is done a message box pops up say that
the action is done. Then if you go to a different sheet the userform doesn't
unload. I can go back to the sheet that is supposed to have the form and use
the form just like normal. It just doesn't unload after that one button has
been clicked.

Anyone have any ideas?
--
JNW
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Problem with worksheet_deactivate code

Do you toggle your events off without reseting them
Application.enableevents = false
--
HTH...

Jim Thomlinson


"JNW" wrote:

I've got a userform that opens when a sheet is active and is supposed to
close when the same sheet is deactivated. This has worked fine in the past
and I was wonder what if anything can be done.

what happens now?
It opens and closes normally until a button on the form is clicked and the
action is performed. After the action is done a message box pops up say that
the action is done. Then if you go to a different sheet the userform doesn't
unload. I can go back to the sheet that is supposed to have the form and use
the form just like normal. It just doesn't unload after that one button has
been clicked.

Anyone have any ideas?
--
JNW

  #3   Report Post  
Posted to microsoft.public.excel.programming
JNW JNW is offline
external usenet poster
 
Posts: 480
Default Problem with worksheet_deactivate code

Thank you Jim! That didn't even cross my mind.
--
JNW


"Jim Thomlinson" wrote:

Do you toggle your events off without reseting them
Application.enableevents = false
--
HTH...

Jim Thomlinson


"JNW" wrote:

I've got a userform that opens when a sheet is active and is supposed to
close when the same sheet is deactivated. This has worked fine in the past
and I was wonder what if anything can be done.

what happens now?
It opens and closes normally until a button on the form is clicked and the
action is performed. After the action is done a message box pops up say that
the action is done. Then if you go to a different sheet the userform doesn't
unload. I can go back to the sheet that is supposed to have the form and use
the form just like normal. It just doesn't unload after that one button has
been clicked.

Anyone have any ideas?
--
JNW

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
Reasons why Worksheet_Deactivate fails? cormorant[_2_] Excel Programming 12 May 22nd 06 08:43 AM
Worksheet_deactivate fails - any ideas? cormorant Excel Programming 0 May 17th 06 01:58 PM
Worksheet_Deactivate() problem with deleting data Neil Atkinson Excel Programming 1 September 19th 05 02:16 PM
Worksheet_Deactivate() problem with deleting data Karoo News Excel Programming 3 September 19th 05 01:39 PM
Capturing the selected tab in a worksheet_deactivate macro jkitzy Excel Programming 1 December 24th 04 09:01 PM


All times are GMT +1. The time now is 02:53 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"