Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Interrupt code

I have a command button that initiates my code. In the middle of the process
I want to stop the code temporarily so the User can type in values in a
column and then continue on with the rest of the code.

Any suggestions???


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 216
Default Interrupt code

Look at InputBox in VBA help.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"srroduin" wrote in message
...
I have a command button that initiates my code. In the middle of the

process
I want to stop the code temporarily so the User can type in values in a
column and then continue on with the rest of the code.

Any suggestions???




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 34
Default Interrupt code

I saw this in the help....

Worksheets("Sheet1").Activate
Set myCell = Application.InputBox( _
prompt:="Select a cell", Type:=8)

Is this what you were talking about?

I originally had the User type the numbers into input boxes which were then
put into cells (worked perfectly). They don't want this. They want to type
in the numbers in the cells themselves.

Is there a way to run part of the macro, pause so they can type in numbers
then resume the macro?

I looked at the comments for pausing, but I am not able to type while it is
pausing. I am new at coding so please explain in detail. I'm slowly catching
on to all of this.

I am hesitant to put more command buttons on the worksheet because there are
3 codes that branch off at this point in the macro and there are 3 seperate
macros on the worksheet that all branch off like this. Were talking a
worksheet full of buttons.

Thanks a bunch Bob for your help.


"Bob Phillips" wrote:

Look at InputBox in VBA help.

--
HTH

Bob Phillips

(remove xxx from email address if mailing direct)

"srroduin" wrote in message
...
I have a command button that initiates my code. In the middle of the

process
I want to stop the code temporarily so the User can type in values in a
column and then continue on with the rest of the code.

Any suggestions???





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
Interrupt find and replace Richard Excel Worksheet Functions 1 October 18th 05 01:32 AM
Interrupt While loop jimbo_jones[_4_] Excel Programming 2 September 20th 05 04:49 PM
Difference Escape and Ctrl + Break to interrupt code RB Smissaert Excel Programming 10 April 25th 05 07:52 PM
QueryTables Interrupt if URL is Down Steve Hieb Excel Programming 0 November 17th 03 10:07 PM
Message box that does not interrupt code Claude Excel Programming 2 October 10th 03 04:12 PM


All times are GMT +1. The time now is 06:37 PM.

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"