PC Review


Reply
Thread Tools Rate Thread

Can a macro pause for a data entry before finishing?

 
 
Fan924
Guest
Posts: n/a
 
      11th Jun 2009
Can a macro pause for a data entry before finishing?
 
Reply With Quote
 
 
 
 
Rick Rothstein
Guest
Posts: n/a
 
      11th Jun 2009
You can use an InputBox to take the new data in... the program will pause
for the user to enter the value...

Dim NewData As Variant
....
....
NewData = Application.InputBox("Give me the new data.")
'
' Do whatever you want with the contents of the NewData
' variable. You may want to check to make sure the user
' actually entered a value before attempting to use the value.
'

--
Rick (MVP - Excel)


"Fan924" <(E-Mail Removed)> wrote in message
news:4bb52f92-4cee-4335-98f9-(E-Mail Removed)...
> Can a macro pause for a data entry before finishing?


 
Reply With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      11th Jun 2009
In short... No. there are a few techniques I have seen posted but in general
they all have pretty significant drawbacks. Here is what you can do

1. Use an input box to get info from the user (good if you only want really
simple input)

2. Use a user form to get user input (good for more complex input)

3. End the macro at the point of requireing input. Catch change events
occuring in the spreadsheet to initiate the final code.
--
HTH...

Jim Thomlinson


"Fan924" wrote:

> Can a macro pause for a data entry before finishing?
>

 
Reply With Quote
 
Patrick Molloy
Guest
Posts: n/a
 
      11th Jun 2009
x = Inputbox( )
or
x=Application.Inputbox( ... )



"Fan924" <(E-Mail Removed)> wrote in message
news:4bb52f92-4cee-4335-98f9-(E-Mail Removed)...
> Can a macro pause for a data entry before finishing?


 
Reply With Quote
 
Fan924
Guest
Posts: n/a
 
      12th Jun 2009
Thanks guys
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
can I write an Excel macro to pause for data entry then continue? kiwiwaldo Microsoft Excel Misc 3 30th Jun 2008 10:25 AM
Pause for data entry David Overington Microsoft Excel Programming 1 30th Nov 2007 11:43 AM
Macro Pause during Dialog Box data entry =?Utf-8?B?a2F5YWJvYg==?= Microsoft Excel Misc 6 20th Oct 2005 02:58 PM
Re: Pause Macro to enter data in cell Frank Kabel Microsoft Excel Programming 4 30th May 2004 10:56 PM
Re: Programing a macro to pause while running for data entry Don Guillett Microsoft Excel Programming 0 27th Aug 2003 12:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:04 PM.