Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Hutch
 
Posts: n/a
Default Can you pause a macro in excel to input data and continue?

I have a spreadsheet that I have to use two or more macros. I have to
change/input numbers in different cells at different places in the process. I
wondered if there was a way to set a pause at these points of input using one
macro with a pause and continue function.
  #2   Report Post  
Posted to microsoft.public.excel.misc
CLR
 
Posts: n/a
Default Can you pause a macro in excel to input data and continue?

Here's some sample code to show one way you can input two numbers in two
different cells..........modify to suit

Sub InputData()
Dim k, l 'As Long
k = InputBox("Enter First Number:")
Range("g1").Value = k
l = InputBox("Enter second number:")
Range("g2") = l
End Sub

hth
Vaya con Dios,
Chuck, CABGx3



"Hutch" wrote:

I have a spreadsheet that I have to use two or more macros. I have to
change/input numbers in different cells at different places in the process. I
wondered if there was a way to set a pause at these points of input using one
macro with a pause and continue function.

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 2003 FAILS, but Excel 2000 SUCCEEDS ??? Richard Excel Discussion (Misc queries) 2 May 13th 23 12:46 PM
Macro Pause during Dialog Box data entry kayabob Excel Discussion (Misc queries) 6 October 20th 05 03:58 PM
Help PLEASE! Not sure what answer is: Match? Index? Other? baz Excel Worksheet Functions 7 September 3rd 05 04:47 PM
Inserting Filtered RC cell information into other worksheets Dennis Excel Discussion (Misc queries) 10 July 30th 05 02:54 AM
Macro to pause for user input in dialog box kayabob Excel Discussion (Misc queries) 1 June 22nd 05 08:49 PM


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