Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 54
Default Worksheet_Change Event problem in 2007

Hi,

I have code in the Worksheet_Change event of a spreadsheet I created with
Excel 2003 and XP OS. If I copy that spreadsheet on to a machine running
Excel 2007 and Vista, the code runs because I can step through it, but the
code is not executed. I'm sure that screen updating is enabled and nothing
in the event code disables it. I do disable events once the initial change
event occurs because one of the calls within this routine hides rows and
columns on rhe worksheet and I don't want to re-fire the change event. I do
re-enable events at the end of the sub. I'm including a snippet of the code.
You can see that it should be updating the status bar but it does not. I'm
sure I'm just missing something simple but I can't for the life of me figure
out what it might be. Any input would be appreciated.

Here's the code:

Private Sub Worksheet_Change(ByVal Target As Range)

Dim LastCol As Integer
Dim OnOff As Integer
Dim UpdateScreen As String

If Target.Row = 4 And Target.Column = 5 Then
ActiveWorkbook.Unprotect Password:="password"
Application.EnableCancelKey = xlDisabled
On Error GoTo GracefulExit

With Application
.EnableEvents = False
.StatusBar = False
.StatusBar = "Building Format.....Please Wait."
End With

Call BudgetPresentation (LastCol)
--
Thanks.
Chuck M.
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 Sandy Excel Programming 3 August 4th 07 12:23 PM
How do I change a Worksheet_change event to a beforesave event? Tueanker Excel Programming 5 June 29th 07 03:00 PM
Problem with Data Validation Dropdown List / Worksheet_Change Event [email protected] Excel Programming 1 August 9th 06 10:21 PM
Worksheet_Change Event cmcfalls[_4_] Excel Programming 3 April 12th 04 09:47 PM
Problem with Worksheet_Change event Romuald Excel Programming 2 January 19th 04 09:41 AM


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