#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default pause

hi,

i have some code.. but i want the user to be able to enter a number in a
spreadsheet that will be used in a later part of the code. the number cannot
be entered before the code. it has to be entered in the middle after a
certain part of the code executes. is there any way to do a pause to allow
the use to enter a number/interact with the spreadsheet and then have the
code resume?

thanks in advance,
geebee

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default pause

Hi geebee-
The most simplistic way is to use an inputbox asking the user to enter data
in it then have the macro write the data to the cell you need it in.

David

"geebee" wrote:

hi,

i have some code.. but i want the user to be able to enter a number in a
spreadsheet that will be used in a later part of the code. the number cannot
be entered before the code. it has to be entered in the middle after a
certain part of the code executes. is there any way to do a pause to allow
the use to enter a number/interact with the spreadsheet and then have the
code resume?

thanks in advance,
geebee

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 190
Default pause

hi...

but the input/interaction is with radio buttons... is there a good approach
to handlong these?

thanks in advance,
geebee


"DStrong" wrote:

Hi geebee-
The most simplistic way is to use an inputbox asking the user to enter data
in it then have the macro write the data to the cell you need it in.

David

"geebee" wrote:

hi,

i have some code.. but i want the user to be able to enter a number in a
spreadsheet that will be used in a later part of the code. the number cannot
be entered before the code. it has to be entered in the middle after a
certain part of the code executes. is there any way to do a pause to allow
the use to enter a number/interact with the spreadsheet and then have the
code resume?

thanks in advance,
geebee

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 471
Default pause

Like the other guy said, but here is an example:

Sub testit()
Dim X As Variant

'do your first stuff here....
'now have the code get their input:
Let X = InputBox(prompt:="Please enter the number now")
'now record that value in your cell , example here is D5.
cells(5,4).value=val(X)

'now continue on...

End Sub


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default pause

The radio box is on the sheets as a Form item or Control Item. If it is a
Form Item, then the radio button can be linked to a cell and the inputbox
data can change the linked cell to what the user chooses.

David

"geebee" wrote:

hi...

but the input/interaction is with radio buttons... is there a good approach
to handlong these?

thanks in advance,
geebee


"DStrong" wrote:

Hi geebee-
The most simplistic way is to use an inputbox asking the user to enter data
in it then have the macro write the data to the cell you need it in.

David

"geebee" wrote:

hi,

i have some code.. but i want the user to be able to enter a number in a
spreadsheet that will be used in a later part of the code. the number cannot
be entered before the code. it has to be entered in the middle after a
certain part of the code executes. is there any way to do a pause to allow
the use to enter a number/interact with the spreadsheet and then have the
code resume?

thanks in advance,
geebee

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
Stop / Pause a Macro using Pause button scott56hannah Excel Programming 0 June 27th 08 12:48 PM
pause geebee Excel Programming 3 September 19th 06 09:51 PM
Best way to pause? Ramthebuffs[_26_] Excel Programming 2 March 1st 06 03:48 AM
Pause cogent Excel Programming 3 June 2nd 04 05:54 AM
Pause? Pete Fedrowitz Excel Programming 2 February 13th 04 06:05 PM


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