2007 wont run 2003 worksheet change event

Aussie Grid

New Member
Joined
Jan 14, 2010
Messages
47
I have extensive code on the worksheet change event involving data validation. I've changed macro settings and saved the book as a macro enabled 07 format. The log in form works OK but the change event will only run for the first sheet change. Open and close and again the change event only runs once.
Ideas?
Any & all help appreciated
Aussie Grid
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Are you by any chance toggling Events in your code and do you have Error Handlers in place ?

Might be an idea to post the ChangeEvent code in the first instance.
 
Upvote 0
Thank you DonkeyOte for your help. I did have an error handler in place which exited sub on error. This was fine with 03 but 07 obviously didn't like it. Removed it and have had no more trouble.
TKU
Aussie Grid
 
Upvote 0
The Exit Sub would only be an issue if you had Disabled Events beforehand and were not reinstating them prior to Exit...

One way of handling in this manner is to use an Exit Point

Code:
Sub Marine()
Dim dblX As Double
On Error GoTo ExitPoint
Application.EnableEvents = False
dblX = 1 / Round(Rand(),0)
MsgBox "No Error!"
ExitPoint:
Application.EnableEvents = True
End Sub

this way, regardless of whether routine throws an error or not the Events are always reinstated... obviously this is a simplified example but...

Regards error handling practices: http://www.cpearson.com/excel/ErrorHandling.htm
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top