Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 205
Default Pause macro user selection, then resume

Hi All,

I want to pause macros, which allow user to select a range that can not be
predetermined or a set range each use, then resume macro. or allow data entry
in unspecified range, then resume.

Thanks.


--
Linda

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default Pause macro user selection, then resume

Macros don't pause... You can have one Macro run to completion and then based
on the actions of the user initiate another macro to complete the task. You
can you use the on change event or any number of other ways to accomplish
what you need. If it is unclear how to do this post back with a few more
details and some code for more assistance.
--
HTH...

Jim Thomlinson


"Linda" wrote:

Hi All,

I want to pause macros, which allow user to select a range that can not be
predetermined or a set range each use, then resume macro. or allow data entry
in unspecified range, then resume.

Thanks.


--
Linda

  #3   Report Post  
Posted to microsoft.public.excel.programming
Jzz Jzz is offline
external usenet poster
 
Posts: 20
Default Pause macro user selection, then resume

Hi Linda,
I faced a simular problem, and I solved it with a loop which runs until
the user makes an action (in this case until he or she selects
something else). In the loop state: DoEvents. Then the macro runs in
the background and the user can use Excel. My loop looks like this:

Do Until a < b Or g = 1
DoEvents
b = TypeName(Selection)
Loop

For me it is perfect; maybe if you change it is works for you too.

Good Luck,

Jzz

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
Excel Macro: Pause & ask user: "Are you sure you want to continue? RoBear! Excel Discussion (Misc queries) 6 March 13th 08 09:14 AM
set up a pause in a print macro for user input Scott53 Excel Programming 1 September 7th 05 04:46 PM
create a pause in print macro to allow user to select printer Scott53 Excel Programming 1 September 7th 05 04:29 PM
Macro to pause for user input in dialog box kayabob Excel Discussion (Misc queries) 1 June 22nd 05 07:49 PM
Pause macro for user cell address input Ed Haslam Excel Programming 2 September 18th 03 07:53 PM


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