Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Halt or Pause a Macro

I need to stop and allow the user to look over and make any necessary changes
to a workbook before my macro opens all the other workbooks and updates their
values. Is there a Pause or Halt process in VBA with Excel 2003
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Halt or Pause a Macro

You are not really looking to halt or pause a running macro, so much as you
want to end a macro and allow the user to do whetever stuff they need to do
before you proceed to the next macro. Not knowing your circumstances it is
hard to say just how you want to trigger the next macro. I usually just use a
button (which I may keep disabled until the user has performed some sort of a
required action which will enable the button).
--
HTH...

Jim Thomlinson


"Tomkat743" wrote:

I need to stop and allow the user to look over and make any necessary changes
to a workbook before my macro opens all the other workbooks and updates their
values. Is there a Pause or Halt process in VBA with Excel 2003

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 48
Default Halt or Pause a Macro

How does the button work? I can't just prompt the user if they need to make
changes they usually know in advance if changes are going to need to be made.
Could the button end the Macro and than step back into the Macro at the same
place or do I just make a toolbar button and assign a macro to it? I already
have the choice of two different macros depending on which type of sheet they
are updating from now it would turn into four and I would have to do this for
each day of the week adding another 14 macros which I already am having
difficulty with because I don't know how to do a relative file location code
to follow the file the macro resides in (see my post "Change a Macro commands
reference to file locations")

"Jim Thomlinson" wrote:

You are not really looking to halt or pause a running macro, so much as you
want to end a macro and allow the user to do whetever stuff they need to do
before you proceed to the next macro. Not knowing your circumstances it is
hard to say just how you want to trigger the next macro. I usually just use a
button (which I may keep disabled until the user has performed some sort of a
required action which will enable the button).
--
HTH...

Jim Thomlinson


"Tomkat743" wrote:

I need to stop and allow the user to look over and make any necessary changes
to a workbook before my macro opens all the other workbooks and updates their
values. Is there a Pause or Halt process in VBA with Excel 2003

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Halt or Pause a Macro

Lets take a step back. What is this macro going to do? Will the modifications
made by the user change the flow of the macros?

Perhaps a high level discussion of what this spreadsheet does is in order.
What is the flow. When does the user need to get involved and for what
reason. Maybe if we redisign the process a bit we can make this entire
project a lot easier.
--
HTH...

Jim Thomlinson


"Tomkat743" wrote:

How does the button work? I can't just prompt the user if they need to make
changes they usually know in advance if changes are going to need to be made.
Could the button end the Macro and than step back into the Macro at the same
place or do I just make a toolbar button and assign a macro to it? I already
have the choice of two different macros depending on which type of sheet they
are updating from now it would turn into four and I would have to do this for
each day of the week adding another 14 macros which I already am having
difficulty with because I don't know how to do a relative file location code
to follow the file the macro resides in (see my post "Change a Macro commands
reference to file locations")

"Jim Thomlinson" wrote:

You are not really looking to halt or pause a running macro, so much as you
want to end a macro and allow the user to do whetever stuff they need to do
before you proceed to the next macro. Not knowing your circumstances it is
hard to say just how you want to trigger the next macro. I usually just use a
button (which I may keep disabled until the user has performed some sort of a
required action which will enable the button).
--
HTH...

Jim Thomlinson


"Tomkat743" wrote:

I need to stop and allow the user to look over and make any necessary changes
to a workbook before my macro opens all the other workbooks and updates their
values. Is there a Pause or Halt process in VBA with Excel 2003

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
Halt Rest of Macro after Error €“ Jim Cone review Jenny B. Excel Discussion (Misc queries) 2 January 12th 08 03:11 AM
No RETURN() or HALT() function found on macro sheet [email protected] Excel Discussion (Misc queries) 3 September 26th 06 03:35 PM
Halt A Macro If a Cell Contains a Certain Value John[_110_] Excel Programming 5 October 28th 05 08:50 PM
Halt all code while macro runs TimT Excel Programming 1 October 12th 05 04:51 PM
Code to halt a macro floss Excel Programming 1 April 26th 04 08:22 PM


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