Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Startup code and keys to break execution

Hello All

is there a way to stop the startup code from running by hitting a set of
keys? or is there a way to put code into my startup so that i can hit a set
of keys and have it break the execution.

i have a few workbooks that i am working on and it takes them a while to
load and then refresh all the pivot tables in them. i want to be able to
break the code. additionally i am thinking that i will update the pivot
tables as the user clicks on the tabs, but at the moment i just need to know
if there are preset keys to kill code execution.

thanks for any and all help! :)
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Startup code and keys to break execution

You are probably better of to not let the code start exectuing in the first
place. Try using a message box at the beginning of the startup routine to
determine if you want to run the refresh

if msgbox("Refresh Tables???", vbyesno) = vbno then exit sub
--
HTH...

Jim Thomlinson


"DawnTreader" wrote:

Hello All

is there a way to stop the startup code from running by hitting a set of
keys? or is there a way to put code into my startup so that i can hit a set
of keys and have it break the execution.

i have a few workbooks that i am working on and it takes them a while to
load and then refresh all the pivot tables in them. i want to be able to
break the code. additionally i am thinking that i will update the pivot
tables as the user clicks on the tabs, but at the moment i just need to know
if there are preset keys to kill code execution.

thanks for any and all help! :)

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Startup code and keys to break execution

Hello Jim

thats a great suggestion. my boss and i were just thinking that when the
sheet is clicked on we could update the pivot tables then.

thanks for the help! :)

"Jim Thomlinson" wrote:

You are probably better of to not let the code start exectuing in the first
place. Try using a message box at the beginning of the startup routine to
determine if you want to run the refresh

if msgbox("Refresh Tables???", vbyesno) = vbno then exit sub
--
HTH...

Jim Thomlinson


"DawnTreader" wrote:

Hello All

is there a way to stop the startup code from running by hitting a set of
keys? or is there a way to put code into my startup so that i can hit a set
of keys and have it break the execution.

i have a few workbooks that i am working on and it takes them a while to
load and then refresh all the pivot tables in them. i want to be able to
break the code. additionally i am thinking that i will update the pivot
tables as the user clicks on the tabs, but at the moment i just need to know
if there are preset keys to kill code execution.

thanks for any and all help! :)

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
Stop window saying code execution interrupted at startup? Jerry07 Excel Discussion (Misc queries) 1 August 15th 09 05:16 PM
Page break in normal view set at startup Stephen S Excel Discussion (Misc queries) 3 April 14th 06 11:46 PM
User initiated break/actions during macro execution mbarron Excel Programming 1 September 29th 04 05:35 PM
How to DISABLE THE CONTROL BREAK shortcut keys Marcello do Guzman Excel Programming 3 January 9th 04 01:48 PM
What is the hierarchy of code execution? Nathan Gutman Excel Programming 1 January 5th 04 03:27 AM


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