Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8,520
Default Code doesn't work from in Office 2003


Private Sub Worksheet_Calculate()
Application.EnableEvents = False
'your code
Application.EnableEvents = True
End Sub

If this post helps click Yes
---------------
Jacob Skaria


"Dennis Cheung" wrote:

The following code worked fine in office xp but not in 2003

Private Sub Worksheet_Calculate()
Application.EnableEvents = True
Run ("SelectAfter")
Application.EnableEvents = True
End Sub

The problem is when I tried to unhide rows in the sheet, the marco
"SelectAfter" runs. And I only need it runs when somethng changed in PVT. It
worked fine in XP version but above situiation happened after I changed to
2003.
The marco SelectAfter means to hide 2 rows after select other items in PVT.

Can someone help?
--
Dennis Cheung

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
ms office 2003 excel does not work well on vista cdjk_081 Excel Discussion (Misc queries) 0 August 4th 09 11:53 AM
Can you open Office 2007 docs in Office 2003 from code? Cindy M. Excel Programming 0 August 19th 08 01:00 PM
VBA does not work for Office 2003 Pat Excel Discussion (Misc queries) 3 November 22nd 05 08:00 PM
Office 2003 PIA do not work for Office 2000 Ahmed Excel Programming 1 June 16th 04 06:54 PM
VB scripts from Office 97 that no longer work in Office 2003 Christian Johansson Excel Programming 7 January 24th 04 12:34 PM


All times are GMT +1. The time now is 01:59 PM.

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"