Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 13
Default input box containing a list?

I have a macro that prompts the user to answer about 40 questions and input
the data into specific cells of my worksheet. This macro is assigned to a
graphic in the worksheet and runs at the user's command. What I would like
is for the macro to ask the first 10 questions, and then ask the user if they
want to continue. If they say yes, I want them to finish the last 30
questions and if they say no, I want to ask them to choose one of five
options (Opt1 thru Opt5, let's say) that correspondes to a cell in the
worksheet that is a list of those options.

Any ideas on the code I would have to use for that? Thanks!

PS - Right now, I'm using the simple macro below to prompt my user. Is
there a code for asking them all of the questions at once instead of one by
one?
myNum = Application.InputBox("What is your expected number?")
Range("A14").Value = myNum
myNum = Application.InputBox("What is your expected whatever?")
Range("A15").Value = myNum

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 101
Default input box containing a list?

You will have to make a userform.

http://spreadsheets.about.com/cs/exc.../vba1index.htm



Mangesh



"redb" wrote in message
...
I have a macro that prompts the user to answer about 40 questions and

input
the data into specific cells of my worksheet. This macro is assigned to a
graphic in the worksheet and runs at the user's command. What I would

like
is for the macro to ask the first 10 questions, and then ask the user if

they
want to continue. If they say yes, I want them to finish the last 30
questions and if they say no, I want to ask them to choose one of five
options (Opt1 thru Opt5, let's say) that correspondes to a cell in the
worksheet that is a list of those options.

Any ideas on the code I would have to use for that? Thanks!

PS - Right now, I'm using the simple macro below to prompt my user. Is
there a code for asking them all of the questions at once instead of one

by
one?
myNum = Application.InputBox("What is your expected number?")
Range("A14").Value = myNum
myNum = Application.InputBox("What is your expected whatever?")
Range("A15").Value = myNum



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
Input Range for a List Box sca723 Excel Worksheet Functions 1 November 11th 05 03:15 PM
List Box Input to query Anusha Excel Discussion (Misc queries) 0 September 9th 05 10:14 PM
List with Input Box Dave Peterson[_4_] Excel Programming 2 November 9th 04 04:23 PM
Input Box List pauluk[_15_] Excel Programming 6 April 6th 04 11:01 PM
Input Box Drop-Down List Chris Morgan Excel Programming 1 November 7th 03 04:40 PM


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