LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Input box/form

Hello, I am trying to make form so that users can input numbers and text
in a spreadsheet via a form. I have got the following code but the
problem with it is that each question opens in a seperate box. I would
also like a drop down box on the last one to allow them to choose
between discount 1, discount 2 or discount 3. Is there any way to have
each of thos represent a number, so that the user just types in
discount one and a number ie 17.5 appears in the cell instead.

UserVal = Application.InputBox(prompt:="Enter Sale Price", Type:=1)
If UserVal < False Then Range("C25") = UserVal
UserVal = Application.InputBox(prompt:="Enter Quantity", Type:=1)
If UserVal < False Then Range("C27") = UserVal
UserVal = Application.InputBox(prompt:="Enter Discount Rate")
If UserVal < False Then Range("C31") = UserVal

Thanks for your help, Jon

p.s I've only just started using vba so i'm not very good at it at the
moment.



------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~ View and post usenet messages directly from http://www.ExcelForum.com/

 
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
First Input on a Form JayW Excel Worksheet Functions 0 June 13th 07 09:33 AM
input in number form is being multiplied by 1000 when i input. jweinograd Excel Discussion (Misc queries) 4 April 16th 07 11:18 PM
always present input form sloth Excel Discussion (Misc queries) 0 September 25th 06 03:55 PM
How can I have an input form to add a random no. to each input entry? saziz Excel Discussion (Misc queries) 2 January 25th 06 11:46 PM
Input Form vba help mdalzell Excel Discussion (Misc queries) 0 April 8th 05 03:57 PM


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