Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 161
Default Worksheet change Event

I have 2 questions:
when I run a change event procedure on the worksheet, I need to unprotect
the sheet and protect is once it is done. I have procedures to do that.
They a

Sub protectsheet()
ActiveSheet.Protect
End Sub
Sub unprotectsheet()
ActiveSheet.Unprotect
End Sub

I call them in my change event code for the worksheet. After it ran, the
change event wouldn't work. How do I unprotect the sheet and protect it
again once the procedure is done?

My other question is
Once the change event stopped working I couldn't get it to work again. Even
when I removed all the code and did a simple msgbox(""). How do I fix this?

th
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Worksheet change Event

See the responses at your other post in programming group.


Gord Dibben MS Excel MVP

On Thu, 17 Jan 2008 07:45:02 -0800, ranswert
wrote:

I have 2 questions:
when I run a change event procedure on the worksheet, I need to unprotect
the sheet and protect is once it is done. I have procedures to do that.
They a

Sub protectsheet()
ActiveSheet.Protect
End Sub
Sub unprotectsheet()
ActiveSheet.Unprotect
End Sub

I call them in my change event code for the worksheet. After it ran, the
change event wouldn't work. How do I unprotect the sheet and protect it
again once the procedure is done?

My other question is
Once the change event stopped working I couldn't get it to work again. Even
when I removed all the code and did a simple msgbox(""). How do I fix this?

th


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 Change event DoctorG Excel Discussion (Misc queries) 4 February 15th 06 12:53 PM
Worksheet Change event LAF Excel Discussion (Misc queries) 3 January 4th 06 02:08 AM
Worksheet Change Event DCSwearingen Excel Discussion (Misc queries) 1 October 10th 05 10:25 PM
Worksheet Change Event TonyM Excel Discussion (Misc queries) 8 March 11th 05 12:52 PM
Worksheet Row Change event crazybass2 Excel Discussion (Misc queries) 4 December 8th 04 05:29 PM


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