Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default Events are not disabled

hi,

I'm deleting a sheet w/ data via code and the following is not working??

Application.EnableEvents = False
wks.Delete
Application.EnableEvents = True

Thank you for your suggestions
--
______
Regards,
Greg
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default Events are not disabled

You give almost no information but perhaps you want
application.displayalerts=false


--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"Greg" wrote in message
...
hi,

I'm deleting a sheet w/ data via code and the following is not working??

Application.EnableEvents = False
wks.Delete
Application.EnableEvents = True

Thank you for your suggestions
--
______
Regards,
Greg


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Events are not disabled

Works fine for me. What are you expecting to happen?

If you don't want to see the *alert*, use

On Error Resume Next
Application.DisplayAlerts = False
wks.Delete
Application.DisplayAlerts = True
On Error GoTo 0



In article ,
Greg wrote:

hi,

I'm deleting a sheet w/ data via code and the following is not working??

Application.EnableEvents = False
wks.Delete
Application.EnableEvents = True

Thank you for your suggestions

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 331
Default Events are not disabled

Exactly! Appreciate it!

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
Cut is disabled BSchmeltz Excel Discussion (Misc queries) 4 March 1st 07 02:30 PM
do events? background events cereldine[_15_] Excel Programming 1 April 12th 06 01:06 PM
Disabled add-ins Rog Excel Programming 3 October 26th 05 04:00 PM
worksheet change event error events disabled Peter[_21_] Excel Programming 2 July 10th 04 08:45 AM
Help becomes disabled mern Excel Programming 0 February 7th 04 09:06 PM


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