Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Macro stopping and starting.

Hi,

I've got two different userforms, both with input fields.

When I've finished working on one I press a commandbutton that runs a macro
containing validations and the processing of the data into the sheets. After
the validation and before inserting data into the sheets, I would like to
call another userform and let the macro wait until I'm finished with the
inputs on the other userform, before continuing with the remaining code.

Is this possible?

Cheers,

Paul
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Macro stopping and starting.

You can not really pause macro execution while you do other things. What you
can do is to split the macro in two. Execute the first macro ending by
opening the user form. When you close that form you can kick off the second
macro.
--
HTH...

Jim Thomlinson


"Paul" wrote:

Hi,

I've got two different userforms, both with input fields.

When I've finished working on one I press a commandbutton that runs a macro
containing validations and the processing of the data into the sheets. After
the validation and before inserting data into the sheets, I would like to
call another userform and let the macro wait until I'm finished with the
inputs on the other userform, before continuing with the remaining code.

Is this possible?

Cheers,

Paul

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 661
Default Macro stopping and starting.

Jim,

Thanks for your reply, I already thought of that as a back-up.

Thanks

Paul
"Jim Thomlinson" wrote:

You can not really pause macro execution while you do other things. What you
can do is to split the macro in two. Execute the first macro ending by
opening the user form. When you close that form you can kick off the second
macro.
--
HTH...

Jim Thomlinson


"Paul" wrote:

Hi,

I've got two different userforms, both with input fields.

When I've finished working on one I press a commandbutton that runs a macro
containing validations and the processing of the data into the sheets. After
the validation and before inserting data into the sheets, I would like to
call another userform and let the macro wait until I'm finished with the
inputs on the other userform, before continuing with the remaining code.

Is this possible?

Cheers,

Paul

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
Starting and Stopping excel from command line. Bruce Edwards Excel Discussion (Misc queries) 1 April 27th 08 06:34 PM
Stopping a Macro Felix Excel Programming 10 August 14th 07 12:20 PM
Starting and stopping Ontime EW Excel Programming 2 April 13th 06 02:02 AM
Starting/Stopping Worksheet Event Code Paul987 Excel Discussion (Misc queries) 1 March 20th 06 04:43 PM
stopping macro DPK Excel Programming 3 May 13th 04 06:50 AM


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

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"