Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default pausing a macro

Hi,

is there a way to pause the macro, allow the user to
change some values in a worksheet and resume the macro
again?

thanks

Hasan


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default pausing a macro

Not really. You can prompt for input with the InputBox or
Application.Inputbox

--
Regards,
Tom Ogilvy

"Hasan Cansü" wrote in message
...
Hi,

is there a way to pause the macro, allow the user to
change some values in a worksheet and resume the macro
again?

thanks

Hasan




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default pausing a macro

Hasan,

Use Application.Inputbox, with a type of 8, and just ignore (or not) the
range that gets selected.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Hasan Cansü" wrote in message
...
Hi,

is there a way to pause the macro, allow the user to
change some values in a worksheet and resume the macro
again?

thanks

Hasan




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default pausing a macro

if you are running into a situation where execution needs to completel
stop (eg: users want to run a macro, modify the data a day later the
resume execution,) then you might try this

you could split it into two macros

the first runs and creates any output that needs user modification.

and at the end, this first macro writes any required variables t
ranges on a hidden worksheet, then draws a "continue" button with th
second macro assigned to it.

on activation, the second macro deletes the "continue" button, read
the variables from the hidden sheet and finishes the run.

this type of thing requires a lot of error trapping. you need to pla
for the users deleting the hidden variables, or altering the data s
that the second macro can't work properly, etc. i recommend validatin
the data as part of the second macro... (ie: "this sheet contains fiv
rows, it should contain seven. i can not continue." etc.

--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default pausing a macro


-----Original Message-----
Hi,

is there a way to pause the macro, allow the user to
change some values in a worksheet and resume the macro
again?

thanks

Hasan


.



  #6   Report Post  
Posted to microsoft.public.excel.programming
No Name
 
Posts: n/a
Default pausing a macro


-----Original Message-----
Hi,

is there a way to pause the macro, allow the user to
change some values in a worksheet and resume the macro
again?

thanks

Hasan


.

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default pausing a macro

Application.Inputbox, look it up in VBA help as there are various type
options.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

wrote in message
...

-----Original Message-----
Hi,

is there a way to pause the macro, allow the user to
change some values in a worksheet and resume the macro
again?

thanks

Hasan


.



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
VBA macro pausing [email protected] Excel Worksheet Functions 2 February 23rd 09 01:19 PM
Pausing a macro Alex.W Excel Discussion (Misc queries) 2 August 10th 07 11:30 AM
Pausing Macro Patches New Users to Excel 2 March 28th 07 03:00 AM
Is there a way of pausing a macro Shazza Excel Discussion (Misc queries) 2 March 12th 07 10:59 PM
Pausing a VBA macro Dean Taylor Excel Programming 1 August 1st 03 05:44 PM


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