Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default setting up a inputbox with a number value

Hi guys,
I am trying to set up a inputbox for a macro which will display a employees
name and a number value as well is it possible?
I am running excel 2007. this is for a assignment
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default setting up a inputbox with a number value

If you're just displaying data, you may want to just use a msgbox. InputBox's
are genearlly used to gather data. Here's an example with both being used:

Sub DisplayName()
'Gather info
xName = InputBox("What is the name?", "Name")
xValue = InputBox("What is the value?", "Value")

'Display info
MsgBox "The name is: " & xName & vbNewLine & _
"The value is: " & xValue
End Sub


--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"ozchick" wrote:

Hi guys,
I am trying to set up a inputbox for a macro which will display a employees
name and a number value as well is it possible?
I am running excel 2007. this is for a assignment

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
Setting the cell number as a variable Intern Excel Discussion (Misc queries) 1 June 5th 09 08:41 PM
New Worksheet Default Number Setting Curtis Setting up and Configuration of Excel 2 May 27th 09 01:57 PM
Setting number in cell back to zero Mike[_3_] New Users to Excel 2 November 25th 07 05:55 AM
Setting up an IF function using a name rather than a number karenhvb Excel Discussion (Misc queries) 3 October 20th 06 04:05 AM
Setting the number of decimal places for a text box. Aaron1978 Excel Discussion (Misc queries) 3 March 8th 06 04:59 PM


All times are GMT +1. The time now is 03:17 AM.

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"