Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Can a macro pause for a data entry before finishing?

Can a macro pause for a data entry before finishing?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,934
Default Can a macro pause for a data entry before finishing?

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" wrote in message
...
Can a macro pause for a data entry before finishing?


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Can a macro pause for a data entry before finishing?

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?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default Can a macro pause for a data entry before finishing?

x = Inputbox( )
or
x=Application.Inputbox( ... )



"Fan924" wrote in message
...
Can a macro pause for a data entry before finishing?


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 238
Default Can a macro pause for a data entry before finishing?

Thanks guys
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
can I write an Excel macro to pause for data entry then continue? kiwiwaldo Excel Discussion (Misc queries) 3 June 30th 08 10:25 AM
Stop / Pause a Macro using Pause button scott56hannah Excel Programming 0 June 27th 08 12:48 PM
Pause for data entry David Overington[_2_] Excel Programming 1 November 30th 07 11:43 AM
Macro Pause during Dialog Box data entry kayabob Excel Discussion (Misc queries) 6 October 20th 05 02:58 PM
Programing a macro to pause while running for data entry Don Guillett[_4_] Excel Programming 0 August 27th 03 12:14 AM


All times are GMT +1. The time now is 09:10 PM.

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"