LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Prevent users from breaking VBA code execution


Hi all,

This may have been answered before but I've trawled the 'net and
couldn't find a solution. I've a fairly big VBA project that pulls a
lot of data from a SQL DB and does some formatting. The macro code can
take up to 15minutes to complete depending on network traffic and that
means the user can hold [Escape] and break the execution of the code
leaving the workbook in a transitional state (I use a lot of protection
code to stop users modifying sections of the sheets and this can be
removed if the code is stopped in midsequence).

Is there anyway I can stop users from breaking the code execution? I
tried using Application.OnKey "{esc}", "" in my Auto_Open routine to
disable the [Escape] key when the workbook opens but this doesn't seem
to work. They can break the code and also stop pivottables and
querytables from completing their refreshing.

Any help would be much appreciated. Thanks.


--
KerranJast
------------------------------------------------------------------------
KerranJast's Profile: http://www.excelforum.com/member.php...o&userid=34971
View this thread: http://www.excelforum.com/showthread...hreadid=547088

 
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
code to prevent users from adding new worksheets jat Excel Worksheet Functions 2 March 18th 09 08:24 PM
How to I prevent a row from breaking across pages? ... rllngriver Excel Discussion (Misc queries) 2 February 27th 08 05:45 PM
How to I prevent a row from breaking across pages? tbaam Excel Discussion (Misc queries) 1 March 20th 06 07:35 PM
prevent users from overwriting other users data [email protected] Excel Worksheet Functions 0 April 17th 05 08:18 PM
MACRO OR VBA CODE TO PREVENT USERS FROM PRINTING THE CONTENTS OF A WORKSHEET? Marcello do Guzman Excel Programming 1 November 8th 03 12:34 AM


All times are GMT +1. The time now is 01:24 AM.

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"